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 />
PropTypeDefaultDescription
open*booleanControls open state of the confirmation dialog.
onOpenChange*(open: boolean) => voidState change handler.
title*stringTitle describing the action.
description*stringClear explanation of what will occur if confirmed.
variant"info" | "warning" | "destructive""warning"Visual indicator type.
confirmTextstring"Continue"Action button label.
cancelTextstring"Cancel"Dismiss button label.
onConfirm() => void | Promise<void>Async or sync confirmation execution handler.