FAQ

Frequently asked questions

Setup, browser support, styling, and migration.

How does it differ from vaul?

Touch dragging is native scroll-snap and modal sheets are a <dialog>. The Drawer adapter takes common vaul props, including snapPoints and direction; portal containers and some focus callbacks are unsupported and warn in development. See the migration guide and comparison.

What is the bundle size?

The Sheet import is 14.44 kB compressed (brotli), excluding React, CSS, and chunks loaded on demand. Many libraries quote gzip, which runs larger. There are no runtime dependencies.

Does it work with Next.js App Router?

Yes. Add 'use client' to the file that renders Sheet.Root. See Framework support.

Does it work with Tailwind?

Yes. Pass utilities through className and load the scrollsheet stylesheet. See Tailwind.

How accessible is it?

Modal sheets use showModal() for focus containment, and a multi-detent Sheet.Handle is a keyboard slider. Supply a Sheet.Title or an accessible label. See Accessibility.

Which browsers does it support?

Browsers without <dialog> get a fixed-position modal with backdrop and Escape dismissal, but no detents or dragging. See the support matrix.

Which Sonner APIs are supported?

Common ones, including success, error, custom, and promise. Dark and system theming, richColors, and RTL are not implemented. See Migrate from Sonner.

Does it support snap points?

Yes. Pass detents an array of 'full', 'medium', 'content', a fraction, or a pixel string. See Detents.

Does it handle the iOS keyboard?

Yes. It tracks visualViewport, and bottom sheets move above the keyboard when a text field has focus. See Keyboard.

Does it work inside a Shadow DOM?

Controls can live in a shadow root, but Sheet.Content portals to document.body, so load its styles in the document. See Shadow DOM.

Who maintains it?

Ansuman Shah. It is MIT-licensed. See the changelog and GitHub.