AlertDialogDestructive() — ui Function Reference
Architecture documentation for the AlertDialogDestructive() function in alert-dialog-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6bbcb02e_4b74_f153_03a7_753ebd59b2a2["AlertDialogDestructive()"] d0344643_7519_ec05_b167_295207d8cf8e["alert-dialog-example.tsx"] 6bbcb02e_4b74_f153_03a7_753ebd59b2a2 -->|defined in| d0344643_7519_ec05_b167_295207d8cf8e style 6bbcb02e_4b74_f153_03a7_753ebd59b2a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/alert-dialog-example.tsx lines 158–191
function AlertDialogDestructive() {
return (
<Example title="Destructive" className="items-center">
<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="destructive">Delete Chat</Button>
</AlertDialogTrigger>
<AlertDialogContent size="sm">
<AlertDialogHeader>
<AlertDialogMedia className="bg-destructive/10 text-destructive dark:bg-destructive/20 dark:text-destructive">
<IconPlaceholder
lucide="Trash2Icon"
tabler="IconTrash"
hugeicons="Delete02Icon"
phosphor="TrashIcon"
remixicon="RiDeleteBinLine"
/>
</AlertDialogMedia>
<AlertDialogTitle>Delete chat?</AlertDialogTitle>
<AlertDialogDescription>
This will permanently delete this chat conversation. View{" "}
<a href="#">Settings</a> delete any memories saved during this
chat.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel variant="ghost">Cancel</AlertDialogCancel>
<AlertDialogAction variant="destructive">Delete</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AlertDialogDestructive() do?
AlertDialogDestructive() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/alert-dialog-example.tsx.
Where is AlertDialogDestructive() defined?
AlertDialogDestructive() is defined in apps/v4/registry/bases/radix/examples/alert-dialog-example.tsx at line 158.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free