Install
Install with your package manager or the shadcn CLI. Read more
React primitives for bottom sheets, drawers, dialogs, side panels, and toasts. Start with installation or choose a topic below.
Install
Install with your package manager or the shadcn CLI. Read more
Anatomy
The seven sheet components and what they do. Read more
CSS
Style the default panel with className, CSS variables, or your own stylesheet. Read more
Tailwind
Tailwind v4 utilities apply directly to Sheet.Content and Sheet.Handle, no plugin or config required. Read more
Detents
DetentSpec accepts full, medium, content, a fraction, or pixels, and onTravel reports progress against each one. Read more
Imperative control
Open, close, or snap a sheet with actionsRef. Read more
Nested and morph
Nest sheets and resize them when content changes. Read more
Scrollable content inside a sheet
Scroll a list, then move the sheet when the list reaches its edge. Read more
Keyboard
Make room for the on-screen keyboard with –scrollsheet-keyboard. Read more
Side panels
Open a sheet from any edge. Left and right detents set its width. Read more
Non-modal
Keep the page interactive behind the sheet with modal={false}. Read more
Desktop drag
Mouse drag excludes interactive controls and opt-out regions. Modal touch gestures normally use native scroll-snap; non-modal gestures use the pointer engine. Read more
Desktop presentation
Above 768px, bottom sheets dock right as a fixed-width drawer and side sheets square off their lead edge; below it, sheets stay full-bleed. Read more
Page transitions
Scale or shift the page behind an open sheet with backgroundEffect. Read more
Toasts
Show toasts with six positions, swipe dismissal, and a Sonner-compatible API. Read more
Using scrollsheet with Motion
Use sheet progress to drive Motion, another animation library, or CSS. Read more
Migrate from vaul
Move from Vaul to scrollsheet and check the behavior differences. Read more
Migrate from Sonner
Move from Sonner to scrollsheet and check the compatibility gaps. Read more
React bottom sheet
What a phone-ready sheet needs: detents, nested scrolling, the keyboard, focus. Read more
Compared with other libraries
Side-by-side pages for vaul, Base UI, react-modal-sheet and Radix Dialog, with what scrollsheet does worse.
Shadow DOM
Add scrollsheet styles to a shadow root with injectStylesInto. Read more
Framework support
Client-component and hydration setup for Next.js, Remix, React Router v7, Astro, and Vite. Read more
API
Props, styling hooks, and exports. Read more
Accessibility
Native modal focus containment and keyboard controls for detents. Read more
Browser support
Browsers without native dialog support get a fixed-position fallback with no drag or detents. Spring easing degrades independently. Read more
Which example shows which prop
A table mapping every Sheet.Root prop to the example that exercises it. Read more
Dismissal is disabled while checkout processes, then enabled when it finishes.