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 1fa976ed_3bde_608f_eb13_b6206718d395["dialog-demo.tsx"] aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"] 1fa976ed_3bde_608f_eb13_b6206718d395 --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e["dialog"] 1fa976ed_3bde_608f_eb13_b6206718d395 --> 4dc8bbf9_c114_4bfa_0f89_4ae4ccd0ae1e 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"] 1fa976ed_3bde_608f_eb13_b6206718d395 --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107 fa665cdb_5f79_b81a_95ab_12ba182fc175["label"] 1fa976ed_3bde_608f_eb13_b6206718d395 --> fa665cdb_5f79_b81a_95ab_12ba182fc175 style 1fa976ed_3bde_608f_eb13_b6206718d395 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Button } from "@/registry/new-york/ui/button"
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
} from "@/registry/new-york/ui/dialog"
import { Input } from "@/registry/new-york/ui/input"
import { Label } from "@/registry/new-york/ui/label"
export 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" value="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" value="@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/new-york/internal/sink/components/dialog-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/internal/sink/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free