- Components
- Overlays
Alert Dialog
A dialog that interrupts for a decision. No close button and no backdrop dismissal, so the user picks an action.
Installation#
npx shadcn add @ortaui/alert-dialogExamples#
Confirm and destructive#
API reference#
| Prop | Type | Default | Description |
|---|---|---|---|
| open / defaultOpen | boolean | - | Controlled or uncontrolled state. |
| onOpenChange | (open: boolean) => void | - | Called when the open state changes. |
| variant | ButtonProps['variant'] | - | AlertDialogAction (default primary) and AlertDialogCancel (default outline). |
| className | string | - | Merged with the component classes via cn(). |