Confirmation

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*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.
confirmTextstring"Continue"Action button label.
cancelTextstring"Cancel"Dismiss button label.
onConfirm() => void | Promise<void>—Async or sync confirmation execution handler.