






















registry/default/variants/v-dialog-6.tsx
import { AlertTriangleIcon } from "lucide-react";
import { Button } from "@/registry/default/ui/button";
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/default/ui/dialog";
export function Pattern() {
return (
<div className="flex items-center justify-center">
<Dialog>
<DialogTrigger render={<Button variant="outline" />}>
Delete Item
</DialogTrigger>
<DialogContent>
<DialogHeader>
<div className="flex items-start gap-3">
<div className="flex size-10 shrink-0 items-center justify-center rounded-full bg-destructive/10 text-destructive">
<AlertTriangleIcon className="size-5" />
</div>
<div className="flex flex-col gap-1">
<DialogTitle>Are you sure?</DialogTitle>
<DialogDescription>
This action cannot be undone. This will permanently delete the
item and remove all associated data from our servers.
</DialogDescription>
</div>
</div>
</DialogHeader>
<DialogFooter>
<DialogClose render={<Button variant="outline" />}>
Cancel
</DialogClose>
<Button variant="destructive">Delete</Button>
</DialogFooter>
</DialogContent>
</Dialog>
</div>
);
}