Home / Function/ DialogDemo() — ui Function Reference

DialogDemo() — ui Function Reference

Architecture documentation for the DialogDemo() function in dialog-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  9601c0f1_7d01_28d8_54dc_7690e928f1bf["DialogDemo()"]
  1fa976ed_3bde_608f_eb13_b6206718d395["dialog-demo.tsx"]
  9601c0f1_7d01_28d8_54dc_7690e928f1bf -->|defined in| 1fa976ed_3bde_608f_eb13_b6206718d395
  style 9601c0f1_7d01_28d8_54dc_7690e928f1bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/internal/sink/components/dialog-demo.tsx lines 14–47

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>
  )
}

Subdomains

Frequently Asked Questions

What does DialogDemo() do?
DialogDemo() is a function in the ui codebase, defined in deprecated/www/registry/new-york/internal/sink/components/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in deprecated/www/registry/new-york/internal/sink/components/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