Home / File/ sheet.tsx — ui Source File

sheet.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 4 imports 10 functions

Entity Profile

Dependency Diagram

graph LR
  b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e["sheet.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"]
  b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e --> 9c463da6_747b_38dc_586b_cbb4873070b1
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style b1de0a06_ea6f_22d2_9b3d_1cd4c0b3438e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { XIcon } from "lucide-react"
import { Dialog as SheetPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
  return <SheetPrimitive.Root data-slot="sheet" {...props} />
}

function SheetTrigger({
  ...props
}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
  return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
}

function SheetClose({
  ...props
}: React.ComponentProps<typeof SheetPrimitive.Close>) {
  return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
}

function SheetPortal({
  ...props
}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
  return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
}

function SheetOverlay({
  className,
  ...props
}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
  return (
    <SheetPrimitive.Overlay
      data-slot="sheet-overlay"
      className={cn(
        "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
        className
      )}
      {...props}
    />
  )
}

function SheetContent({
  className,
  children,
  side = "right",
  showCloseButton = true,
  ...props
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
  side?: "top" | "right" | "bottom" | "left"
  showCloseButton?: boolean
}) {
  return (
    <SheetPortal>
      <SheetOverlay />
      <SheetPrimitive.Content
// ... (84 more lines)

Subdomains

Dependencies

  • lucide-react
  • radix-ui
  • react
  • utils

Frequently Asked Questions

What does sheet.tsx do?
sheet.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.tsx?
sheet.tsx defines 10 function(s): Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger.
What does sheet.tsx depend on?
sheet.tsx imports 4 module(s): lucide-react, radix-ui, react, utils.
Where is sheet.tsx in the architecture?
sheet.tsx is located at apps/v4/registry/new-york-v4/ui/sheet.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).

Analyze Your Own Codebase

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

Try Supermodel Free