DialogDemo() — ui Function Reference
Architecture documentation for the DialogDemo() function in dialog-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 638356c2_9250_3705_548e_cff5ae584035["DialogDemo()"] a3699177_5c93_e1e3_aa66_10d7f504a7dc["dialog-demo.tsx"] 638356c2_9250_3705_548e_cff5ae584035 -->|defined in| a3699177_5c93_e1e3_aa66_10d7f504a7dc style 638356c2_9250_3705_548e_cff5ae584035 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/new-york/examples/dialog-demo.tsx lines 14–47
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" 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
Source
Frequently Asked Questions
What does DialogDemo() do?
DialogDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/examples/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in deprecated/www/registry/new-york/examples/dialog-demo.tsx at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free