examples/sheet-left.tsx
import { Sheet, SheetContent, SheetTrigger } from "@/components/wensity/sheet";export function LeftSheet() {return (<Sheet><SheetTrigger>Menu</SheetTrigger><SheetContent side="left" /></Sheet>);}
A React sheet that slides in from any edge as a side panel for filters, carts, and mobile navigation, with a persistent mode that ignores backdrop clicks.
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.
Sheet is a React and Tailwind CSS side panel built on Base UI Dialog, in Next.js or any React app, that slides in from the left, right, top, or bottom edge. It behaves like a modal, holding focus and closing on Escape, which suits filters, settings, carts, and mobile navigation. persistent stops clicks on the backdrop from closing it, for inspectors where a stray click would lose work. SheetHeader, SheetBody, and SheetFooter lay out the content, and a hidden title is added when you leave SheetTitle out. For a panel users drag down to close, use Drawer instead.
Run the following command
pnpm dlx wensity@latest add sheet
npx wensity@latest add sheet
yarn dlx wensity@latest add sheet
bunx 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. |
A React modal dialog on Base UI with default, confirmation, form, fullscreen, and scrollable layouts, focus trapping, and a ready made confirm flow.
A React drawer and bottom sheet on Base UI with swipe to dismiss, snap points, a grab handle, and five sides including a fullscreen mobile panel.
A React app sidebar with collapsible, icon rail, floating, and resizable modes, grouped sections, badge counts, nested links, and a gliding active pill.
A React popover on Base UI for small menus, inline forms, and rich previews, with collision aware placement, a custom anchor, and four set widths.

A macOS genie minimize built on a real per-slice warp that sucks any window, folder, or panel down into a waiting dock.

Grab any corner and peel the sheet back. It curls, catches the light, and springs shut with the weight of paper.

Real refraction, where feDisplacementMap warps the actual pixels sitting behind the card instead of blurring them.

Tinder-style swipe cards where the top card flicks off under your thumb and the one underneath rises in real time.