Dialog

Displays a modal window above the page contents.

This component inherits parts and props from the Radix Dialog primitive. View source

Contains all the parts of a dialog.

Wraps the control that will open the dialog.

Contains content to be rendered in the open dialog. This component is based on the div element.

An accessible title that is announced when the dialog is opened. This part is based on the Heading component with a pre-defined font size and leading trim on top.

An optional accessible description that is announced when the dialog is opened. This part is based on the Text component with a pre-defined font size.

If you want to remove the description entirely, remove this part and pass aria-describedby={undefined} to Dialog.Content.

Wraps the control that will close the dialog.

Use the Inset component to create a container that ignores the Content part padding. If needed, you can recreate the original padding by setting the Inset part’s padding props to "current".