sheet.tsx — ui Source File
Architecture documentation for sheet.tsx, a tsx file in the ui codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 93cc6a41_6b61_94c9_2820_1f4439c1f504["sheet.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 93cc6a41_6b61_94c9_2820_1f4439c1f504 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 86c25b21_4f1d_ec20_df66_b57d63c10480["dialog"] 93cc6a41_6b61_94c9_2820_1f4439c1f504 --> 86c25b21_4f1d_ec20_df66_b57d63c10480 8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"] 93cc6a41_6b61_94c9_2820_1f4439c1f504 --> 8ad666ec_1b20_adda_0392_87a60bdb3a68 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] 93cc6a41_6b61_94c9_2820_1f4439c1f504 --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] 93cc6a41_6b61_94c9_2820_1f4439c1f504 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style 93cc6a41_6b61_94c9_2820_1f4439c1f504 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog"
import { cn } from "@/registry/bases/base/lib/utils"
import { Button } from "@/registry/bases/base/ui/button"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function Sheet({ ...props }: SheetPrimitive.Root.Props) {
return <SheetPrimitive.Root data-slot="sheet" {...props} />
}
function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props) {
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
}
function SheetClose({ ...props }: SheetPrimitive.Close.Props) {
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
}
function SheetPortal({ ...props }: SheetPrimitive.Portal.Props) {
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
}
function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {
return (
<SheetPrimitive.Backdrop
data-slot="sheet-overlay"
className={cn("cn-sheet-overlay fixed inset-0 z-50", className)}
{...props}
/>
)
}
function SheetContent({
className,
children,
side = "right",
showCloseButton = true,
...props
}: SheetPrimitive.Popup.Props & {
side?: "top" | "right" | "bottom" | "left"
showCloseButton?: boolean
}) {
return (
<SheetPortal>
<SheetOverlay />
<SheetPrimitive.Popup
data-slot="sheet-content"
data-side={side}
className={cn("cn-sheet-content", className)}
{...props}
>
{children}
{showCloseButton && (
<SheetPrimitive.Close
data-slot="sheet-close"
render={
<Button
// ... (75 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- dialog
- icon-placeholder
- react
- utils
Source
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, UIPrimitives 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 5 module(s): button, dialog, icon-placeholder, react, utils.
Where is sheet.tsx in the architecture?
sheet.tsx is located at apps/v4/registry/bases/base/ui/sheet.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free