Bottom sheet
A sheet that rises from the bottom with drag detents.
Harbour room 4 · listed
When to use
- Mobile actions, filters and details that peek then expand.
- Content that benefits from being half-open.
When not to use
- Desktop-only layouts; use a drawer or dialog.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/bottom-sheet
Adds its 4 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
BottomSheet
9 props
PropTypeDefault
title *string—
descriptionstring—
children *ReactNode—
openboolean—
defaultOpenbooleanfalse
onOpenChange((open: boolean) => void)—
detentsreadonly number[][0.45, 0.92]
onDetentChange((index: number) => void)—
classNamestring—
Keyboard
- ↑
- Moves to the previous item or value.
- End
- Jumps to the last item or the maximum.
- ↓
- Moves to the next item or value.
- Home
- Jumps to the first item or the minimum.
Accessibility
It exposes dialog and status semantics, with aria-label, aria-modal, aria-labelledby, aria-expanded and aria-keyshortcuts kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/bottom-sheet.mdThe index of every part is at /llms.txt.