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.
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
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
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.mdThe index of every part is at /llms.txt.