scrollsheet vs react-modal-sheet
react-modal-sheet is an active bottom sheet built on Motion. scrollsheet drags with the browser's own scrolling and has no dependencies. The right pick depends mostly on whether Motion is already in your app.
Side by side
| Dimension | scrollsheet | react-modal-sheet |
|---|---|---|
| Touch dragging1 | The browser scrolls a CSS scroll-snap container | Motion drag gestures (dragElastic, dragMomentum set in sheet.tsx) |
| Dependencies | 0 runtime, React as a peer | motion as a peer (11 or newer), plus react-use-measure |
| JavaScript, compressed2 | 14.44 kB (Sheet import) | 52.65 kB with Motion bundled. 7.88 kB if your app already ships Motion |
| Modal semantics3 | Native <dialog> showModal(): focus containment and an inert page behind it | None built in. The README says it ships no accessibility properties and shows a React Aria recipe for focus trapping |
| API shape | Sheet.Root, Trigger, Content, Handle, Title, Close | Sheet with isOpen / onClose, plus Container, Header, Content, Backdrop |
| Snap points | detents: fractions, pixels, content, medium, full | snapPoints array and snapTo(index); detent of default, content or full |
| Edges | Four edges, or a centered dialog | Bottom sheet (no edge option in the README props table) |
| Keyboard avoidance | Reads visualViewport; sets --scrollsheet-keyboard | avoidKeyboard, on by default, via Visual Viewport or Virtual Keyboard API |
| Page scale effect | backgroundEffect with data-scrollsheet-background | modalEffectRootId |
| Custom animation | onTravel and --scrollsheet-progress | Motion values (y, snap index) exposed through a ref or context |
| React versions | 18+ | 16 and up |
| npm downloads, last week4 | 241 | 199,793 |
- react-modal-sheet 5.6.0 source and README.
- Bundled with Bun, minified, React external, using the options in
scripts/lib/bundle-measure.ts. react-modal-sheet 5.6.0 and motion 14.9.1, measured 5 Nov 2026. Both figures are brotli; many libraries quote gzip, which runs larger. How much of Motion an app already includes depends on which Motion features it uses, so the second figure is a floor. - react-modal-sheet README, “Accessibility”. The source has no
<dialog>,roleorinert. - npm downloads API, 28 Oct to 3 Nov 2026.
Try the detents
Both libraries snap between stops. In scrollsheet the stops are CSS scroll-snap points, and the handle is a slider you can move with the arrow keys.
Drag between 35%, 70% and full height, or focus the handle and press the arrow keys.
Choose react-modal-sheet if
- Motion is already in your app, so its cost is about 7.9 kB compressed.
- You want Motion values to drive your own animation as the sheet moves.
- You support React older than 18.
- You want to compose your own focus handling, for example with React Aria.
- You want the larger user base: roughly 200 thousand weekly downloads, and releases as recent as March 2026.
Choose scrollsheet if
- You do not use Motion and do not want to add it.
- You want focus containment and an inert background without writing it.
- You need side panels, a centered dialog or toasts from the same package.
- You want touch dragging to be the browser's scrolling, not a gesture library's.
scrollsheet requires <dialog> and scroll-snap for dragging. See browser support for the fallback below those versions.
Beyond bottom sheets
A sheet opened from inside a sheet. The parent recedes and dims on its own.
Questions
I already use Motion. Does that change the choice?
Yes. react-modal-sheet adds about 7.9 kB compressed when Motion is already in your bundle, so the size gap mostly disappears. It also hands you Motion values to animate your own content against the sheet. scrollsheet exposes the same idea through onTravel and --scrollsheet-progress, and has a guide for using it with Motion.
Which one handles focus and screen readers?
scrollsheet modal sheets use showModal(), so the browser contains focus and makes the rest of the page inert. react-modal-sheet leaves that to you on purpose, and its README documents a React Aria setup. Neither choice is wrong. One is built in and the other is yours to compose.
Try it in your app
bun add scrollsheet