Updated
Exploded View
ProCustomize
In view
Spread0.36
Lift0.26
Stagger0.08s
Accent
Size280px
Installation
ProExploded View is a Pro component
Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.
Install with a key
- Add the Pro registry to
components.json:components.json { "registries": { "@uibrik-pro": { "url": "https://uibrik.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" } } } } - Put your key in
.env.localand add that file to.gitignore:.env.local UIBRIK_LICENSE=your-license-key - Install it:
Terminal npx shadcn@latest add @uibrik-pro/exploded-view
Loading your installation…
Usage
import { ExplodedView } from "@/components/uibrik/exploded-view/exploded-view";const layers = [ { label: "Interface", description: "Screens your team ships, rendered at the edge and hydrated in pieces.", visual: "interface" }, { label: "API", description: "Typed endpoints with versioning, retries and rate limits built in.", visual: "api" }, // …2 more];<ExplodedView trigger="view" spread={0.36} lift={0.26} stagger={0.08} tilt rails accent="#3b82f6" size={280} layers={layers} defaultValue={null} label="Layers" onValueChange={(id) => {}} // value="…"/>Where to use Exploded View
Architecture sections
Interface, API, data and edge pulled apart show how a product is built before anyone reads the copy.
Pairs with Beam Network
Platform overviews
Each layer of the stack opens to one line, so a long feature list becomes four things to point at.
Pairs with Stacked Steps
Hardware and design teardowns
Your own content on each layer turns it into a teardown of a device, a design file or a document.
Pairs with Feature Morph
Props
ExplodedView- trigger
- Type "view" | "hover" | "always"
- "view"
- When the stack pulls apart: once it scrolls into view, while pointed at, or from the start.
- spread
- Type number
- 0.36
- Gap between layers, as a share of a layer's width.
- lift
- Type number
- 0.26
- How far the layers above an open layer lift away.
- stagger
- Type number
- 0.08
- Delay between each layer leaving the stack.
- tilt
- Type boolean
- true
- Lean the stack toward the pointer.
- rails
- Type boolean
- true
- Dashed rails through the corners of the stack.
- accent
- Type string
- "#3b82f6"
- Colour of the marks on the open layer.
- size
- Type number
- 280
- Largest a layer gets. It shrinks to fit narrow containers.
- layers
- Type { id?: string; label: string; description?: string; visual?: "interface" | "api" | "data" | "edge" | ReactNode }[]
- SAMPLE_LAYERS
- Layers from top to bottom. visual is a built-in sketch or your own content for the layer's face.
- value / defaultValue
- Type string | null
- null
- Id of the open layer, controlled or uncontrolled. null shows every layer evenly.
- onValueChange
- Type (id: string | null) => void
- –
- Called when a layer is opened or closed.
- label
- Type string
- "Layers"
- Names the list for screen readers.
- className
- Type string
- –
- Classes for the wrapper.