Interaction
Confirmation
Give an action a clear review point before it runs.
0 confirmed
Installation
Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/confirmation-dialog.jsonAPI
| Prop / export | Type | Description |
|---|---|---|
| open | boolean | Controlled visibility. |
| onOpenChange | (open) => void | Visibility updates. |
| title / description | string | Describe the concrete action and its consequences. |
| onConfirm | () => Promise<unknown> | Runs only after confirmation. |
Behavior & compatibility
Focus trapping and dismissal come from Base UI. Pending actions cannot be dismissed accidentally.
Accessibility
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is fully keyboard operable.