Skip to content

Framework support

The dialog appears after a mount flag is set in useEffect. Both the server and first client render omit it, keeping hydration markup consistent. Triggers and other content outside Sheet.Content still render.

Framework Setup Notes
Next.js App Router Yes, with 'use client' See the caveat below: the file that renders <Sheet.Root> needs the directive too, not just scrollsheet’s own.
Next.js Pages Router Yes No RSC boundary; "use client" has no effect.
Remix / React Router v7 Yes Uses scrollsheet’s SSR and hydration behavior.
Astro Yes See the caveat below.
Vite (SPA, no SSR) Yes No server render or hydration setup needed.