SheetExample() — ui Function Reference
Architecture documentation for the SheetExample() function in preview.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7148c519_7958_42f1_1be6_f106d1222a16["SheetExample()"] f02a92c6_0fdc_9231_5419_752092d638ff["preview.tsx"] 7148c519_7958_42f1_1be6_f106d1222a16 -->|defined in| f02a92c6_0fdc_9231_5419_752092d638ff style 7148c519_7958_42f1_1be6_f106d1222a16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/blocks/preview.tsx lines 1646–1699
function SheetExample() {
return (
<Example title="Sheet">
<div className="flex gap-2">
{SHEET_SIDES.map((side) => (
<Sheet key={side}>
<SheetTrigger
render={
<Button variant="secondary" className="flex-1 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're
done.
</SheetDescription>
</SheetHeader>
<div className="overflow-y-auto px-4 text-sm">
{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 render={<Button variant="outline" />}>
Cancel
</SheetClose>
</SheetFooter>
</SheetContent>
</Sheet>
))}
</div>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SheetExample() do?
SheetExample() is a function in the ui codebase, defined in apps/v4/registry/bases/base/blocks/preview.tsx.
Where is SheetExample() defined?
SheetExample() is defined in apps/v4/registry/bases/base/blocks/preview.tsx at line 1646.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free