Alert Dialog

Interrupting confirmation for destructive actions.

shadcn/ui · new-york-v4 · synced Aug 28, 2026shadcn/uinew-york-v4 · synced Aug 28, 2026

Installation

import {
  AlertDialog,
  AlertDialogTrigger,
  AlertDialogContent,
  AlertDialogHeader,
  AlertDialogTitle,
  AlertDialogDescription,
  AlertDialogFooter,
  AlertDialogCancel,
  AlertDialogAction,
} from "@aspyn-io/kit";

Destructive confirmation

Unlike Dialog, AlertDialog interrupts: no outside-click dismissal, and Cancel receives initial focus. Use it when data loss is on the line.

Notes

  • Dialog closes on overlay click; AlertDialog deliberately does not.
  • AlertDialogAction/Cancel are pre-styled as buttons: pass buttonVariants() to restyle.