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.
bunx shadcn@latest add https://scrollsheet.dev/r/drawer.jsonSwap drawer.json for any item below.
drawer
Section titled “drawer”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.
dialog
Section titled “dialog”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.
confirm
Section titled “confirm”A destructive-action confirmation drawer. dismissible={false} and disableDrag block
swipe, backdrop tap, and Esc, so only its own two buttons can close it.
share-sheet
Section titled “share-sheet”A share drawer with an avatar row for recent contacts and a grid of share targets. Both are plain buttons you wire up yourself.
sidebar
Section titled “sidebar”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.
More components
Section titled “More components”Four items go past wrapping and are documented on their own pages: mobile select, command palette, picker wheel, and action sheet.