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

sheet-side.tsx — ui Source File

Architecture documentation for sheet-side.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
  c865f1ce_bf57_8325_9a4d_e455fe1033ab["sheet-side.tsx"]
  aa2f3ec6_f291_3763_88ec_65a3f5ad5939["button"]
  c865f1ce_bf57_8325_9a4d_e455fe1033ab --> aa2f3ec6_f291_3763_88ec_65a3f5ad5939
  2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107["input"]
  c865f1ce_bf57_8325_9a4d_e455fe1033ab --> 2de1d0e1_ab37_e1b0_4ef3_da8c8fa66107
  fa665cdb_5f79_b81a_95ab_12ba182fc175["label"]
  c865f1ce_bf57_8325_9a4d_e455fe1033ab --> fa665cdb_5f79_b81a_95ab_12ba182fc175
  80ae0a6d_36b4_7c16_76aa_95005b3b164f["sheet"]
  c865f1ce_bf57_8325_9a4d_e455fe1033ab --> 80ae0a6d_36b4_7c16_76aa_95005b3b164f
  style c865f1ce_bf57_8325_9a4d_e455fe1033ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

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

const SHEET_SIDES = ["top", "right", "bottom", "left"] as const

type SheetSide = (typeof SHEET_SIDES)[number]

export default function SheetSide() {
  return (
    <div className="grid grid-cols-2 gap-2">
      {SHEET_SIDES.map((side) => (
        <Sheet key={side}>
          <SheetTrigger asChild>
            <Button variant="outline">{side}</Button>
          </SheetTrigger>
          <SheetContent side={side}>
            <SheetHeader>
              <SheetTitle>Edit profile</SheetTitle>
              <SheetDescription>
                Make changes to your profile here. Click save when you're done.
              </SheetDescription>
            </SheetHeader>
            <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>
            <SheetFooter>
              <SheetClose asChild>
                <Button type="submit">Save changes</Button>
              </SheetClose>
            </SheetFooter>
          </SheetContent>
        </Sheet>
      ))}
    </div>
  )
}

Subdomains

Functions

Types

Dependencies

  • button
  • input
  • label
  • sheet

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free