Pro
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.
pnpm dlx shadcn@latest add @caliper/hinge-panelWhen to use
Use it for
- Master and detail screens: invoices, orders, tickets, files.
- A detail that should feel attached to its row, not like a separate page.
Skip it when
- 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.
Decisions
Why it is built this way, so you know what to keep when you change your copy.
Behaviour
- Focus follows the swing
- Enter on a row moves focus to the panel heading. Escape or Close shuts the panel and puts focus back on the same row.
- A shut panel cannot be tabbed into
- It is inert and its back face is hidden, so keyboard and screen reader users never meet a panel nobody can see.
Styling
- Only the swing is 3D
- The content never sits on a tilted plane for longer than the swing takes. Under 520px the panel covers the list from the same hinge.
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.
Usage
Import it from your copy of the source. The example behind the preview comes with the source.
import { HingePanel } from "@/components/ui/hinge-panel"
The worked example comes with Pro
The 74-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
HingePanel
component
Accessibility
It is built on native elements and keeps aria-label, aria-expanded and aria-controls in step with state.
No custom key handling; Tab and the native activation keys do the work.
Motion
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.
Related
- Resizable panelsTwo panels separated by a draggable, keyboard-operable divider.
- DrawerA panel that slides in from the left or right for editing alongside the page.
- Invoice detailAn issued invoice as the customer reads it: parties with tax ids, lines, discount, VAT or reverse charge, payments made and the balance, with copy link, email, download and pay.