Confirmation
Overlays & Feedback
macOS system alert modal asking the user to confirm destructive or critical actions.
Installation
$npx shadcn-macos@latest add confirmation
Examples
Trigger an authentic macOS confirmation modal alert for critical or destructive user actions.
Props
<Confirmation />| Prop | Type | Default | Description |
|---|---|---|---|
| open* | boolean | — | Controls open state of the confirmation dialog. |
| onOpenChange* | (open: boolean) => void | — | State change handler. |
| title* | string | — | Title describing the action. |
| description* | string | — | Clear explanation of what will occur if confirmed. |
| variant | "info" | "warning" | "destructive" | "warning" | Visual indicator type. |
| confirmText | string | "Continue" | Action button label. |
| cancelText | string | "Cancel" | Dismiss button label. |
| onConfirm | () => void | Promise<void> | — | Async or sync confirmation execution handler. |