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. 2 imports, 0 dependents.

File tsx DocumentationAtlas SearchAPI 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  af2fe0f3_fb57_e9bd_9383_4a21ef4683c2["sheet-side.tsx"]
  4544fa74_9b37_0912_c55e_f4ff161b8e83["button"]
  af2fe0f3_fb57_e9bd_9383_4a21ef4683c2 --> 4544fa74_9b37_0912_c55e_f4ff161b8e83
  76bdfedb_09e9_30d5_272b_d0b8214c91f1["sheet"]
  af2fe0f3_fb57_e9bd_9383_4a21ef4683c2 --> 76bdfedb_09e9_30d5_272b_d0b8214c91f1
  style af2fe0f3_fb57_e9bd_9383_4a21ef4683c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/examples/base/ui/button"
import {
  Sheet,
  SheetClose,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from "@/examples/base/ui/sheet"

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

export default function SheetSide() {
  return (
    <div className="flex flex-wrap gap-2">
      {SHEET_SIDES.map((side) => (
        <Sheet key={side}>
          <SheetTrigger
            render={<Button variant="outline" className="capitalize" />}
          >
            {side}
          </SheetTrigger>
          <SheetContent
            side={side}
            className="data-[side=bottom]:max-h-[50vh] data-[side=top]:max-h-[50vh]"
          >
            <SheetHeader>
              <SheetTitle>Edit profile</SheetTitle>
              <SheetDescription>
                Make changes to your profile here. Click save when you&apos;re
                done.
              </SheetDescription>
            </SheetHeader>
            <div className="no-scrollbar overflow-y-auto px-4">
              {Array.from({ length: 10 }).map((_, index) => (
                <p key={index} className="mb-2 leading-relaxed">
                  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed
                  do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                  Ut enim ad minim veniam, quis nostrud exercitation ullamco
                  laboris nisi ut aliquip ex ea commodo consequat. Duis aute
                  irure dolor in reprehenderit in voluptate velit esse cillum
                  dolore eu fugiat nulla pariatur. Excepteur sint occaecat
                  cupidatat non proident, sunt in culpa qui officia deserunt
                  mollit anim id est laborum.
                </p>
              ))}
            </div>
            <SheetFooter>
              <Button type="submit">Save changes</Button>
              <SheetClose render={<Button variant="outline" />}>
                Cancel
              </SheetClose>
            </SheetFooter>
          </SheetContent>
        </Sheet>
      ))}
    </div>
  )
}

Subdomains

Functions

Dependencies

  • button
  • 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 DocumentationAtlas domain, SearchAPI 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 2 module(s): button, sheet.
Where is sheet-side.tsx in the architecture?
sheet-side.tsx is located at apps/v4/examples/base/sheet-side.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).

Analyze Your Own Codebase

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

Try Supermodel Free