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.
Run the following command
pnpm dlx wensity@latest add sheet
Import Sheet from @/components/wensity/sheet and render it anywhere in your React or Next.js app. The source lands in your own repo, so every prop, class and animation below is yours to edit.
import {Sheet,SheetContent,SheetHeader,SheetTitle,SheetTrigger,} from "@/components/wensity/sheet";export function SheetDemo() {return (<Sheet><SheetTrigger>Open</SheetTrigger><SheetContent side="right"><SheetHeader><SheetTitle>Filters</SheetTitle></SheetHeader></SheetContent></Sheet>);}
| 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. |
Featured in React navbar components.