Alert Dialog
A modal that interrupts the user to confirm an action. It has no close icon.
components/ui/alert-dialog.tsx
Preview
Code
Installation
npx betterone-ds add alert-dialogProps
| Component | Prop | Type | Default |
|---|---|---|---|
| AlertDialog | size | "default" | "sm" | "default" |
Accessibility
- Uses role="alertdialog". Focus moves into the dialog and returns to the trigger on close.
- Use for destructive or irreversible actions only. Use Dialog for everything else.

