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

sheet-demo.tsx — ui Source File

Architecture documentation for sheet-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
  2cd6e80e_b4be_cba4_37e7_2b8bb693c70d["sheet-demo.tsx"]
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  2cd6e80e_b4be_cba4_37e7_2b8bb693c70d --> 57e86e45_ac6e_7278_be08_9092724e8401
  80cf663d_a411_487c_d69e_ac9d405cd2ec["input"]
  2cd6e80e_b4be_cba4_37e7_2b8bb693c70d --> 80cf663d_a411_487c_d69e_ac9d405cd2ec
  d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"]
  2cd6e80e_b4be_cba4_37e7_2b8bb693c70d --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d
  58ac4ad9_4dcc_824e_b958_15469e530779["sheet"]
  2cd6e80e_b4be_cba4_37e7_2b8bb693c70d --> 58ac4ad9_4dcc_824e_b958_15469e530779
  style 2cd6e80e_b4be_cba4_37e7_2b8bb693c70d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/registry/new-york-v4/ui/button"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/registry/new-york-v4/ui/sheet"

export default function SheetDemo() {
  return (
    <Sheet>
      <SheetTrigger asChild>
        <Button variant="outline">Open</Button>
      </SheetTrigger>
      <SheetContent>
        <SheetHeader>
          <SheetTitle>Edit profile</SheetTitle>
          <SheetDescription>
            Make changes to your profile here. Click save when you&apos;re done.
          </SheetDescription>
        </SheetHeader>
        <div className="grid flex-1 auto-rows-min gap-6 px-4">
          <div className="grid gap-3">
            <Label htmlFor="sheet-demo-name">Name</Label>
            <Input id="sheet-demo-name" defaultValue="Pedro Duarte" />
          </div>
          <div className="grid gap-3">
            <Label htmlFor="sheet-demo-username">Username</Label>
            <Input id="sheet-demo-username" defaultValue="@peduarte" />
          </div>
        </div>
        <SheetFooter>
          <Button type="submit">Save changes</Button>
          <SheetClose asChild>
            <Button variant="outline">Close</Button>
          </SheetClose>
        </SheetFooter>
      </SheetContent>
    </Sheet>
  )
}

Subdomains

Functions

Dependencies

  • button
  • input
  • label
  • sheet

Frequently Asked Questions

What does sheet-demo.tsx do?
sheet-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 sheet-demo.tsx?
sheet-demo.tsx defines 1 function(s): SheetDemo.
What does sheet-demo.tsx depend on?
sheet-demo.tsx imports 4 module(s): button, input, label, sheet.
Where is sheet-demo.tsx in the architecture?
sheet-demo.tsx is located at apps/v4/registry/new-york-v4/examples/sheet-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/examples).

Analyze Your Own Codebase

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

Try Supermodel Free