AlertDialogDestructive() — ui Function Reference
Architecture documentation for the AlertDialogDestructive() function in alert-dialog-destructive.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD aa5c0353_9666_9f27_f33f_9f235202c394["AlertDialogDestructive()"] 9f3e2a6e_7a3e_0132_f050_04bbc3b6d81c["alert-dialog-destructive.tsx"] aa5c0353_9666_9f27_f33f_9f235202c394 -->|defined in| 9f3e2a6e_7a3e_0132_f050_04bbc3b6d81c style aa5c0353_9666_9f27_f33f_9f235202c394 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/alert-dialog-destructive.tsx lines 16–40
export function AlertDialogDestructive() {
return (
<AlertDialog>
<AlertDialogTrigger
render={<Button variant="destructive">Delete Chat</Button>}
/>
<AlertDialogContent size="sm">
<AlertDialogHeader>
<AlertDialogMedia className="bg-destructive/10 text-destructive dark:bg-destructive/20 dark:text-destructive">
<Trash2Icon />
</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="outline">Cancel</AlertDialogCancel>
<AlertDialogAction variant="destructive">Delete</AlertDialogAction>
</AlertDialogFooter>
</AlertDialogContent>
</AlertDialog>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AlertDialogDestructive() do?
AlertDialogDestructive() is a function in the ui codebase, defined in apps/v4/examples/base/alert-dialog-destructive.tsx.
Where is AlertDialogDestructive() defined?
AlertDialogDestructive() is defined in apps/v4/examples/base/alert-dialog-destructive.tsx at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free