Bottom sheet with snap points

Pro

A bottom sheet with any number of resting heights: release projects position plus velocity so a flick skips the middle, it rubber-bands at the top, scrolling hands over between list and sheet, and the grab bar bends into a chevron.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Velocity-projected snapping across any heights
  • Scroll handoff between list and sheet in one gesture
  • Dims and traps focus from a chosen height up
  • Mouse drag and wheel on desktop, plus a contained mode
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/bottom-sheet-snap

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/bottom-sheet-snap.tsx.

More Pro components

Spotlight tour

A product tour whose spotlight flows between targets: the cutout morphs position, size and radius on one spring while the note follows, flips at edges and scrolls targets into view.

Pro

Photo lightbox

A gallery whose thumbnail grows into a full-screen viewer with the same crop and corners; pinch, wheel or double tap to zoom, swipe to the next photo, drag down to close.

Pro

Stories viewer

Phone-style stories: segmented progress bars fill per slide, taps step, a hold pauses, and a swipe turns a 3D cube to the next person; pull down and the viewer shrinks away.

Pro