Skip to content
caliper ui docs

Pro

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
pnpm dlx shadcn@latest add @caliper/exploded-view

Invite dialog anatomy

The five layers between the workspace page and the Send invite button.

Installs components/ui/exploded-view.tsxDepends on @radix-ui/react-slot, lucide-reactMotion none in component source

When to use

Use it for

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

Skip it when

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

Decisions

Why it is built this way, so you know what to keep when you change your copy.

Behaviour

Spread is a value, not a switch
A slider and two buttons drive the same number, so people can stop halfway and compare how far apart the layers are.
The list is the interface
The planes are inert and hidden from assistive technology. Names, descriptions and focus live in the list, so nothing depends on seeing the 3D.

Styling

One perspective, on the stage
The page has none. The scene sets 1000px on its own wrapper, and the object turns about 58 degrees, never a full rotation.

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.

Usage

Import it from your copy of the source. The example behind the preview comes with the source.

example.tsx
import { ExplodedView } from "@/components/ui/exploded-view"

The worked example comes with Pro

The 41-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
Checking your licence…

API reference

ExplodedView

component
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—

Accessibility

It is built on native elements and keeps aria-hidden, aria-label, aria-valuetext and aria-pressed 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.

All Surfaces examples