Anotomy

Structure of the modal and how its internal parts are composed. These are the modal's semantic parts, so they are also what the classNames and styles objects accept. The dialog renders in a portal, so these keys are how you reach it.
Modal anotomy
NameDescription
1rootThe dialog's outer box. width and centered place it here.
2containerThe panel itself: background, radius, shadow and padding.
3headerThe row holding the title. It renders when title is set.
4titleThe heading, from title. It also names the dialog for screen readers.
5bodyThe dialog's children. Give styles.body a maxHeight to scroll the body instead of the page.
6footerThe button row, from footer. Cancel and OK by default, and footer={null} removes it.
7closeThe close button in the corner, drawn when closable is set. closeIcon replaces the glyph.
8maskThe dimmed layer over the page, behind the dialog. mask changes or turns it off.
9wrapperThe full-screen layer that positions and scrolls the dialog. A click on it closes the dialog when mask.closable allows it.