dialog-demo.tsx — ui Source File
Architecture documentation for dialog-demo.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f0802c1e_fe41_9467_3789_05bc440b91c8["dialog-demo.tsx"] d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"] f0802c1e_fe41_9467_3789_05bc440b91c8 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4 885f582a_05b5_deff_0779_e9bfb6fad47b["dialog"] f0802c1e_fe41_9467_3789_05bc440b91c8 --> 885f582a_05b5_deff_0779_e9bfb6fad47b 163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"] f0802c1e_fe41_9467_3789_05bc440b91c8 --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60 f826d306_7d63_5ba3_6a53_387904d37a9f["label"] f0802c1e_fe41_9467_3789_05bc440b91c8 --> f826d306_7d63_5ba3_6a53_387904d37a9f style f0802c1e_fe41_9467_3789_05bc440b91c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/default/ui/button"
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/default/ui/dialog"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"
export default function DialogDemo() {
return (
<Dialog>
<DialogTrigger asChild>
<Button variant="outline">Edit Profile</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
<DialogHeader>
<DialogTitle>Edit profile</DialogTitle>
<DialogDescription>
Make changes to your profile here. Click save when you're done.
</DialogDescription>
</DialogHeader>
<div className="grid gap-4 py-4">
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="name" className="text-right">
Name
</Label>
<Input
id="name"
defaultValue="Pedro Duarte"
className="col-span-3"
/>
</div>
<div className="grid grid-cols-4 items-center gap-4">
<Label htmlFor="username" className="text-right">
Username
</Label>
<Input
id="username"
defaultValue="@peduarte"
className="col-span-3"
/>
</div>
</div>
<DialogFooter>
<Button type="submit">Save changes</Button>
</DialogFooter>
</DialogContent>
</Dialog>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- dialog
- input
- label
Source
Frequently Asked Questions
What does dialog-demo.tsx do?
dialog-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in dialog-demo.tsx?
dialog-demo.tsx defines 1 function(s): DialogDemo.
What does dialog-demo.tsx depend on?
dialog-demo.tsx imports 4 module(s): button, dialog, input, label.
Where is dialog-demo.tsx in the architecture?
dialog-demo.tsx is located at deprecated/www/registry/default/examples/dialog-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free