Command Palette
Search for a command to run...
Alert Dialog
A modal dialog that interrupts the user with important content and expects a response.
Installation
npx shadcn@latest add alert-dialog
Usage
import {AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogTitle,AlertDialogTrigger,} from "@/components/xfork-ui/alert-dialog"
<AlertDialog><AlertDialogTrigger>Open</AlertDialogTrigger><AlertDialogContent> <AlertDialogHeader> <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle> <AlertDialogDescription> This action cannot be undone. This will permanently delete your account and remove your data from our servers. </AlertDialogDescription> </AlertDialogHeader> <AlertDialogFooter> <AlertDialogCancel>Cancel</AlertDialogCancel> <AlertDialogAction>Continue</AlertDialogAction> </AlertDialogFooter></AlertDialogContent></AlertDialog>