Hinge panel
A list with a detail panel hinged to its edge. Choosing a row swings the panel open toward you from where the list ends, so the detail visibly belongs to the row you chose, and closing swings it back onto the list. The panel itself is flat, readable content.
When to use
- Master and detail screens: invoices, orders, tickets, files.
- A detail that should feel attached to its row, not like a separate page.
When not to use
- Details that need the whole screen; open a page or a sheet.
- Several details at once; use the accordion or a table with expandable rows.
Installation
pnpm dlx shadcn@latest add @caliper/hinge-panel
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
HingePanel
14 props
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It is built on native elements and keeps aria-label, aria-expanded and aria-controls 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/hinge-panel.mdThe index of every part is at /llms.txt.