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 DocumentationAtlas Changelog 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  10970758_4d14_4a77_a711_4b298639eccb["sheet-demo.tsx"]
  4b1d2128_46d9_46f0_b915_b6e1925b7876["button"]
  10970758_4d14_4a77_a711_4b298639eccb --> 4b1d2128_46d9_46f0_b915_b6e1925b7876
  9af00736_7b63_3c3c_87d0_68c5200c5d80["input"]
  10970758_4d14_4a77_a711_4b298639eccb --> 9af00736_7b63_3c3c_87d0_68c5200c5d80
  2a43f855_1408_526d_d4d2_31c7a87506c6["label"]
  10970758_4d14_4a77_a711_4b298639eccb --> 2a43f855_1408_526d_d4d2_31c7a87506c6
  8484953e_a2b0_c9dc_4839_3020572ff080["sheet"]
  10970758_4d14_4a77_a711_4b298639eccb --> 8484953e_a2b0_c9dc_4839_3020572ff080
  style 10970758_4d14_4a77_a711_4b298639eccb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/radix/ui/button"
import { Input } from "@/examples/radix/ui/input"
import { Label } from "@/examples/radix/ui/label"
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/examples/radix/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 DocumentationAtlas domain, Changelog 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/examples/radix/sheet-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).

Analyze Your Own Codebase

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

Try Supermodel Free