Overlays / Alert Dialog
Alert Dialog
<AlertDialog />StableA blocking confirmation for destructive or irreversible actions. The user has to choose — they can't dismiss by clicking outside. For non-destructive flows, use Dialog. Built on Radix AlertDialog.
import { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogAction, AlertDialogCancel } from "@/components/upnext";
Variants
<AlertDialog><AlertDialogTrigger asChild><Button variant="destructive">Remove recruit</Button></AlertDialogTrigger><AlertDialogContent><AlertDialogHeader><AlertDialogTitle>Remove Marcus Reed from the pipeline?</AlertDialogTitle><AlertDialogDescription>This deletes his profile, notes, and tagged film.</AlertDialogDescription></AlertDialogHeader><AlertDialogFooter><AlertDialogCancel>Cancel</AlertDialogCancel><AlertDialogAction variant="destructive">Remove</AlertDialogAction></AlertDialogFooter></AlertDialogContent></AlertDialog>
Source
The wrapper is a thin re-export; the actual styling lives in the shadcn primitive.