SheetWithSides() — ui Function Reference
Architecture documentation for the SheetWithSides() function in sheet-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD ad966b04_013c_6a7d_cc81_f264eae1e810["SheetWithSides()"] 288ac524_a063_cb90_3755_edf03422f04d["sheet-example.tsx"] ad966b04_013c_6a7d_cc81_f264eae1e810 -->|defined in| 288ac524_a063_cb90_3755_edf03422f04d style ad966b04_013c_6a7d_cc81_f264eae1e810 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/examples/sheet-example.tsx lines 91–142
function SheetWithSides() {
return (
<Example title="Sides">
<div className="flex flex-wrap gap-2">
{SHEET_SIDES.map((side) => (
<Sheet key={side}>
<SheetTrigger asChild>
<Button variant="outline" className="capitalize">
{side}
</Button>
</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're
done.
</SheetDescription>
</SheetHeader>
<div className="no-scrollbar style-vega:px-4 style-maia:px-6 style-mira:px-6 style-lyra:px-4 style-nova:px-4 overflow-y-auto">
{Array.from({ length: 10 }).map((_, index) => (
<p
key={index}
className="style-lyra:mb-2 style-lyra:leading-relaxed mb-4 leading-normal"
>
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 asChild>
<Button variant="outline">Cancel</Button>
</SheetClose>
</SheetFooter>
</SheetContent>
</Sheet>
))}
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SheetWithSides() do?
SheetWithSides() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/examples/sheet-example.tsx.
Where is SheetWithSides() defined?
SheetWithSides() is defined in apps/v4/registry/bases/radix/examples/sheet-example.tsx at line 91.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free