examples/sheet-left.tsx
1import { Sheet, SheetContent, SheetTrigger } from "@/components/wensity/sheet";23export function LeftSheet() {4 return (5 <Sheet>6 <SheetTrigger>Menu</SheetTrigger>7 <SheetContent side="left" />8 </Sheet>9 );10}
Edge-mounted panels that slide in from any side, with an optional persistent mode for inspectors and navigation.
Practical examples and common states for the same installable component.
Navigation rails and file-tree panels.
Inspector and detail panels anchored to the right edge.
Announcements and compact top banners.
Mobile action sheets from the bottom edge.
Ignores overlay clicks - requires explicit dismiss.
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | - | Controlled open state. |
defaultOpen | boolean | - | Initial open state when uncontrolled. |
onOpenChange | (open: boolean) => void | - | Called when the sheet opens or closes. |
modal | boolean | true | Traps focus and blocks interaction with the page behind. |
persistent | boolean | false | Prevents an outside click from dismissing the sheet. |