Alert Dialog
A modal dialog that requires acknowledgement before the user can proceed. Built on Radix UI Alert Dialog.
Confirmation
Usage
Use alert dialogs for destructive or irreversible actions that require explicit confirmation (e.g. deleting data, leaving unsaved changes).
For non-critical information or tasks, use a regular Dialog instead.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | — | Controlled open state |
| onOpenChange | (open: boolean) => void | — | Callback when open state changes |