Install
Install
Section titled “Install”bun add scrollsheetnpm i scrollsheetpnpm add scrollsheetyarn add scrollsheetImport
Section titled “Import”Then import the component and the stylesheet, once per app:
import { Sheet } from 'scrollsheet';import 'scrollsheet/styles.css';Prefer zero config? import { Sheet } from 'scrollsheet/auto' embeds the stylesheet, no CSS
import needed. Sheet.* is client-only: in Next.js App Router, add "use client" to the file that
renders it.
The smallest complete sheet: a title, a body, two buttons. Drag it down; it will not go.
No peer dependencies beyond React and React DOM, 18 or newer.
shadcn/ui
Section titled “shadcn/ui”Every primitive and pattern also ships as a registry item, installable with the shadcn CLI:
bunx shadcn@latest add https://scrollsheet.dev/r/drawer.jsonbunx shadcn@latest add https://scrollsheet.dev/r/sheet.jsonbunx shadcn@latest add https://scrollsheet.dev/r/dialog.jsonbunx shadcn@latest add https://scrollsheet.dev/r/confirm.jsonbunx shadcn@latest add https://scrollsheet.dev/r/share-sheet.jsonbunx shadcn@latest add https://scrollsheet.dev/r/sidebar.jsonbunx shadcn@latest add https://scrollsheet.dev/r/toast.jsonOr pull the same files straight off GitHub: swap https://scrollsheet.dev/r/ for
https://raw.githubusercontent.com/ansumanshah/scrollsheet/main/registry/.
Each writes one file into components/ui/: drawer.tsx, sheet.tsx, dialog.tsx,
confirm.tsx, share-sheet.tsx, sidebar.tsx, toast.tsx. confirm and share-sheet
build on drawer; sidebar builds on sheet; the CLI pulls those in automatically.
What each one gives you: Recipes.
Directorycomponents/
Directoryui/
- drawer.tsx
- sheet.tsx
- dialog.tsx
- confirm.tsx
- share-sheet.tsx
- sidebar.tsx
- toast.tsx
Already on vaul or Sonner?