Detent Sheet

An Apple-style bottom sheet resting at peek, half and full detents — velocity-aware drag with rubber-banding, the background recedes and dims as it rises, and a grabber that also works with tap and ↑ ↓. Esc closes and focus returns to the trigger.

Try it: Drag the grabber, tap it to step up, or focus it and press ↑ ↓; Esc closes.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/detent-sheet.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/detent-sheet. You can also copy the source into components/ui/detent-sheet.tsx (view on GitHub).

Usage

import { DetentSheet } from '@/components/ui/detent-sheet'

Props

Component props
PropTypeDefaultNotes
open / defaultOpen / onOpenChangebooleantrueControlled or uncontrolled visibility.
detent / defaultDetent / onDetentChange'peek' | 'half' | 'full''half'Controlled or uncontrolled detent.
detentsRecord<SheetDetent, number>{ peek: .28, half: .55, full: .92 }Visible fraction of the frame per detent.
title / childrenstring / ReactNode—Sheet heading and body (defaults to a place card).
triggerLabel / frameHeight / backdropstring / number / ReactNode'Show place' / 560Trigger text, frame height, and content behind the sheet.
classNamestring—Extra classes merged onto the frame.

Dependencies

  • motion
  • lucide-react
  • Vibrancy Context Menu

    A macOS-grade context menu on regular glass that blooms from the exact pointer position, flips near the edges, glides a highlight capsule between rows, and blinks the chosen item once before…

  • Dynamic Status Island

    A black capsule that morphs its silhouette between live activities — recording with a level meter, a focus timer with pause, an upload with a progress hairline, a success tick — size and radius on…

  • Deploy Timeline

    A build pipeline that reads like a calm status page: dots resolve to spinners to ticks, the rail fills as steps complete, elapsed times tick in tabular figures, each row expands into logs, and…

  • Glass Segmented Control

    An iOS-style segmented control whose selected thumb is a lifted glass pill that springs between segments with a press squish — native radio semantics, arrow keys and an opaque reduced-transparency…

  • Usage Quota Meter

    A billing-period usage card: hairline tracks fill with stacked segments on the house ease, figures count up in tabular numerals, a limit tick marks 100%, and bars go amber near the limit and rose…

  • File Drop Uploader

    A calm dropzone that lifts and tints on drag-over, then gives each file its own row with a spring progress hairline, a tick that pops on completion, and errors that say what went wrong with one-tap…

See all 14 Product UI components