Alert Dialog

Displays a confirmation modal window above the page contents.

This component inherits parts and props from the Radix Alert Dialog primitive and is visually identical to Dialog, though with differing semantics and behavior. View source

Contains all the parts of an alert dialog.

Wraps the control that will open the alert dialog.

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

An accessible title that is announced when the alert 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 AlertDialog.Content.

Wraps the control that will close the dialog. This should be distinguished visually from the Cancel control.

Wraps the control that will close the dialog. This should be distinguished visually from the Action control.

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".