Skip to content
caliper ui pro docs

Exploded view

Pull a composed interface apart along its depth axis so each layer can be named. Spread is one continuous value: at 0 it is the finished interface seen face on, at 1 it is the labelled stack. The list carries every name, and hovering or focusing a row lights its plane and dims the rest.

Pro

When to use

  • Anatomy sections: what is in a dialog, a card or a menu, and in what order.
  • Explaining stacking: page, scrim, surface, content, focus.

When not to use

  • Decoration. If the layers are not a real stacking order, a flat diagram says it better.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/exploded-view

Adds its 7 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

ExplodedView

12 props
PropTypeDefaultDescription
layers *readonly ExplodedLayer[]—
labelstring"Layers"Accessible name of the layer list.
spreadnumber—0 (flat) to 1 (exploded). Controlled when set.
defaultSpreadnumber1
onSpreadChange((spread: number) => void)—
widthnumber240Size of one plane in pixels.
heightnumber160
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-hidden, aria-label, aria-valuetext and aria-pressed 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/exploded-view.md

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

More in Surfaces