Sheet stack
Stacked sheets that slide over each other.
Maya Chenmaya@forma.studio · Owner
When to use
- Layered flows on mobile.
When not to use
- Desktop-only pages.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/sheet-stack
Adds its 2 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
SheetStack
5 props
PropTypeDefaultDescription
open *boolean—
onOpenChange *(open: boolean) => void—
title *string—
children *ReactNode | ((api: SheetApi) => ReactNode)—The first sheet's content.
classNamestring—
Keyboard
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes dialog semantics, with aria-label, aria-modal, aria-labelledby and aria-hidden kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/sheet-stack.mdThe index of every part is at /llms.txt.