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
  ad845964_92af_a5e0_4fef_343be9a76aee["DialogDemo()"]
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3["dialog-demo.tsx"]
  ad845964_92af_a5e0_4fef_343be9a76aee -->|defined in| 9907ff86_9b0e_b402_6e7f_88b9934f3ab3
  style ad845964_92af_a5e0_4fef_343be9a76aee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/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/default/internal/sink/components/dialog-demo.tsx.
Where is DialogDemo() defined?
DialogDemo() is defined in deprecated/www/registry/default/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