Home / File/ dialog-demo.tsx — ui Source File

dialog-demo.tsx — ui Source File

Architecture documentation for dialog-demo.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx ComponentRegistry ChartRegistry 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3["dialog-demo.tsx"]
  d418ad18_b947_f4e5_6e4c_01100d7a63e4["button"]
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3 --> d418ad18_b947_f4e5_6e4c_01100d7a63e4
  885f582a_05b5_deff_0779_e9bfb6fad47b["dialog"]
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3 --> 885f582a_05b5_deff_0779_e9bfb6fad47b
  163b5f6f_1cd3_6d8d_5305_80eec4895f60["input"]
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3 --> 163b5f6f_1cd3_6d8d_5305_80eec4895f60
  f826d306_7d63_5ba3_6a53_387904d37a9f["label"]
  9907ff86_9b0e_b402_6e7f_88b9934f3ab3 --> f826d306_7d63_5ba3_6a53_387904d37a9f
  style 9907ff86_9b0e_b402_6e7f_88b9934f3ab3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/registry/default/ui/button"
import {
  Dialog,
  DialogContent,
  DialogDescription,
  DialogFooter,
  DialogHeader,
  DialogTitle,
  DialogTrigger,
} from "@/registry/default/ui/dialog"
import { Input } from "@/registry/default/ui/input"
import { Label } from "@/registry/default/ui/label"

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

Functions

Dependencies

  • button
  • dialog
  • input
  • label

Frequently Asked Questions

What does dialog-demo.tsx do?
dialog-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in dialog-demo.tsx?
dialog-demo.tsx defines 1 function(s): DialogDemo.
What does dialog-demo.tsx depend on?
dialog-demo.tsx imports 4 module(s): button, dialog, input, label.
Where is dialog-demo.tsx in the architecture?
dialog-demo.tsx is located at deprecated/www/registry/default/internal/sink/components/dialog-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/internal/sink/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free