Alert Dialog

Modal dialog that interrupts the user with important content and requires an action

Preview

Installation

Usage

Examples

Controlled

Control the alert dialog open state programmatically.

Nested

Use nested alert dialogs for multi-step confirmations.

API Reference

The AlertDialog component is built on top of Base UI's AlertDialog. All Base UI props are supported. The documentation below only covers custom props specific to our implementation.

For the complete Base UI API, see the Base UI AlertDialog documentation.

Props

AlertDialogContent

Modal container for important messages requiring user action. Composes AlertDialog.Portal, AlertDialog.Backdrop, and AlertDialog.Popup. Props are forwarded to AlertDialog.Popup.

Prop

AlertDialogBody

Scrollable content area within the alert dialog.

Prop

Notes

AlertDialogClose

Use AlertDialogClose with the render prop to create action buttons that close the dialog. Wraps Base UI's AlertDialog.Close.