Skip to content
caliper ui pro docs

Expanding panels

A row of panels where one is open and the rest are narrow spines. Hover, focus or a tap opens one: it widens on a long ease and its words fade in after the width has mostly arrived, so text never reflows on screen.

Pro

Offline forms that sync when the boat comes in. Photos, signatures and GPS on every record.

When to use

  • Three to six features, plans or stories that each deserve a picture.
  • A landing section that should reward exploring.

When not to use

  • Content people must compare side by side; use a grid.
  • More than six; the spines get too thin to name.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/expanding-panels

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

ExpandingPanels

4 props
PropTypeDefault
label *string—
panels *readonly ExpandingPanel[]—
defaultValuestring—
classNamestring—

Keyboard

→
Moves to the next item or value.
↓
Moves to the next item or value.
←
Moves to the previous item or value.
↑
Moves to the previous item or value.

Accessibility

It exposes group semantics, with aria-label, aria-hidden, aria-expanded and aria-controls 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/expanding-panels.md

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

More in Media viewers