DialogDemo() — ui Function Reference
Architecture documentation for the DialogDemo() function in dialog-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ce03840e_50fc_4e63_ff59_c0582abae684["DialogDemo()"] f0802c1e_fe41_9467_3789_05bc440b91c8["dialog-demo.tsx"] ce03840e_50fc_4e63_ff59_c0582abae684 -->|defined in| f0802c1e_fe41_9467_3789_05bc440b91c8 style ce03840e_50fc_4e63_ff59_c0582abae684 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/registry/default/examples/dialog-demo.tsx lines 14–55
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
Source
Frequently Asked Questions
What does DialogDemo() do?
DialogDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/examples/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in deprecated/www/registry/default/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