DialogDemo() — ui Function Reference
Architecture documentation for the DialogDemo() function in dialog-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 353c7250_1b20_c451_1e3d_5b99da6d3dfa["DialogDemo()"] d54eaa03_6eba_cbb2_ee52_479979afeaa8["dialog-demo.tsx"] 353c7250_1b20_c451_1e3d_5b99da6d3dfa -->|defined in| d54eaa03_6eba_cbb2_ee52_479979afeaa8 style 353c7250_1b20_c451_1e3d_5b99da6d3dfa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/examples/dialog-demo.tsx lines 15–50
export default function DialogDemo() {
return (
<Dialog>
<form>
<DialogTrigger asChild>
<Button variant="outline">Open Dialog</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">
<div className="grid gap-3">
<Label htmlFor="name-1">Name</Label>
<Input id="name-1" name="name" defaultValue="Pedro Duarte" />
</div>
<div className="grid gap-3">
<Label htmlFor="username-1">Username</Label>
<Input id="username-1" name="username" defaultValue="@peduarte" />
</div>
</div>
<DialogFooter>
<DialogClose asChild>
<Button variant="outline">Cancel</Button>
</DialogClose>
<Button type="submit">Save changes</Button>
</DialogFooter>
</DialogContent>
</form>
</Dialog>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does DialogDemo() do?
DialogDemo() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in apps/v4/registry/new-york-v4/examples/dialog-demo.tsx at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free