Skip to content

Recipes

Each recipe is a shadcn registry item that wraps scrollsheet primitives with shadcn’s default styling. Install it into components/ui/, then edit it to suit your app.

Terminal window
bunx shadcn@latest add https://scrollsheet.dev/r/drawer.json

Swap drawer.json for any item below.

The shadcn/ui drawer API backed by scrollsheet: Drawer, DrawerTrigger, DrawerContent, DrawerTitle, DrawerDescription, DrawerClose, plus DrawerHandle. It uses a native <dialog> and CSS scroll-snap.

The shadcn/ui sheet (side panel), same Sheet/SheetTrigger/SheetContent/SheetHeader/ SheetFooter API, with drag-to-dismiss on every edge. One difference: side lives on <Sheet> (the root), not on SheetContent.

The shadcn/ui dialog API on scrollsheet’s centered presentation: zoom and fade, no travel, no detents, a native <dialog> in the top layer instead of Radix.

Mount Toaster once for stacked toasts with six positions, swipe dismissal, and a Sonner-compatible API.

A destructive-action confirmation drawer. dismissible={false} and disableDrag block swipe, backdrop tap, and Esc, so only its own two buttons can close it.

A share drawer with an avatar row for recent contacts and a grid of share targets. Both are plain buttons you wire up yourself.

A left-anchored navigation drawer with a fixed 300px detent: grouped nav sections plus a sign-out row, styled as a sidebar instead of a bottom sheet.

Four items go past wrapping and are documented on their own pages: mobile select, command palette, picker wheel, and action sheet.