Skip to content
caliper ui pro docs

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.

Pro
Select an invoice to open it beside the list.

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

terminal
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
PropTypeDefaultDescription
items *readonly HingeItem[]—
label *string—Accessible name of the list.
renderDetail *(item: HingeItem) => ReactNode—The panel body for the open row. The heading and the Close button are drawn for you.
openIdstring | null—The open row, or null for none. Controlled when set.
defaultOpenIdstring | nullnull
onOpenChange((id: string | null) => void)—
detailLabelstring"Details"Accessible name of the panel.
placeholderstring"Select an item to open it beside the list."What the empty slot beside the list says while nothing is open.
closeLabelstring"Close"
statusDepthStatus"ready"
messagesDepthMessages—
onRetry(() => void)—
disabledboolean—
classNamestring—

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.md

The index of every part is at /llms.txt.

More in Surfaces