OptionalchildrenBody content. Scrolls when it doesn't fit.
OptionalcloseCloses when the backdrop is clicked.
OptionaldefaultInitial open state when uncontrolled.
OptionaldescriptionSupporting text below the title. Also its accessible description.
OptionalfooterActions shown at the bottom, e.g. Cancel and Confirm buttons.
OptionalonCalled when the dialog opens or closes, including by Esc, the close button or a backdrop click.
OptionalopenControlled open state.
OptionalsizeWidth, from the modalSizes config. Height follows the content, up to the viewport.
Heading of the dialog. Also its accessible name.
OptionaltriggerAn element that opens the dialog when clicked, e.g. a Button. Optional when controlled.
Props shared by Dialog and Drawer.