alert-dialog-destructive.tsx — ui Source File
Architecture documentation for alert-dialog-destructive.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 57adc8f6_ea99_193c_a1cb_82dcb99da3ee["alert-dialog-destructive.tsx"] 812b2224_b4d4_2373_c1c1_1b64b9496f1f["alert-dialog"] 57adc8f6_ea99_193c_a1cb_82dcb99da3ee --> 812b2224_b4d4_2373_c1c1_1b64b9496f1f 4b1d2128_46d9_46f0_b915_b6e1925b7876["button"] 57adc8f6_ea99_193c_a1cb_82dcb99da3ee --> 4b1d2128_46d9_46f0_b915_b6e1925b7876 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 57adc8f6_ea99_193c_a1cb_82dcb99da3ee --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 57adc8f6_ea99_193c_a1cb_82dcb99da3ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogMedia,
AlertDialogTitle,
AlertDialogTrigger,
} from "@/examples/radix/ui/alert-dialog"
import { Button } from "@/examples/radix/ui/button"
import { Trash2Icon } from "lucide-react"
export function AlertDialogDestructive() {
return (
<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">
<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
Functions
Dependencies
- alert-dialog
- button
- lucide-react
Source
Frequently Asked Questions
What does alert-dialog-destructive.tsx do?
alert-dialog-destructive.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in alert-dialog-destructive.tsx?
alert-dialog-destructive.tsx defines 1 function(s): AlertDialogDestructive.
What does alert-dialog-destructive.tsx depend on?
alert-dialog-destructive.tsx imports 3 module(s): alert-dialog, button, lucide-react.
Where is alert-dialog-destructive.tsx in the architecture?
alert-dialog-destructive.tsx is located at apps/v4/examples/radix/alert-dialog-destructive.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free