Alert Dialog
Requests explicit confirmation before a consequential action is committed.
@rivetui/alert-dialogPreview
Explore each composition interactively, then open its code in the same context.
Default
Require an explicit decision before an action with destructive or irreversible consequences.
Note
Use Dialog for ordinary workflows. Alert Dialog intentionally prevents dismissal without choosing an action or canceling.
Environment / Production
Frankfurt edge runtime
18 deployments are attached to this environment.
Registry
Installation
Add the component source and its declared dependencies with the shadcn CLI.
Install component
bunx --bun shadcn@latest add @rivetui/alert-dialogPublic interface
API reference
Component-specific props are listed here. Native element and Base UI props continue to pass through.
AlertDialog
| Prop | Type | Default |
|---|---|---|
open | boolean | — |
defaultOpen | boolean | false |
onOpenChange | (open: boolean, details) => void | — |
AlertDialogContent
| Prop | Type | Default |
|---|---|---|
initialFocus | boolean | RefObject | function | cancel control |