DialogWithForm() — ui Function Reference
Architecture documentation for the DialogWithForm() function in dialog-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 195ec40f_4ab5_103c_b58c_d7dbef37c876["DialogWithForm()"] e4b1833d_78ba_c075_e3db_d6f5313c227b["dialog-demo.tsx"] 195ec40f_4ab5_103c_b58c_d7dbef37c876 -->|defined in| e4b1833d_78ba_c075_e3db_d6f5313c227b style 195ec40f_4ab5_103c_b58c_d7dbef37c876 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(internal)/sink/components/dialog-demo.tsx lines 25–60
function DialogWithForm() {
return (
<Dialog>
<form>
<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">
<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 DialogWithForm() do?
DialogWithForm() is a function in the ui codebase, defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx.
Where is DialogWithForm() defined?
DialogWithForm() is defined in apps/v4/app/(internal)/sink/components/dialog-demo.tsx at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free