Isometric Stack

Isometric Stack

An exploded isometric layer diagram for architecture and platform sections — extruded plates hover apart on staggered springs, and a leader-line label ignites beside each layer.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/isometric-stack.json

▸ Or install manually

  1. Install dependencies: pnpm add motion
  2. Copy the source from the Code tab above.
  3. Place it at components/mellow/isometric-stack.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
layersIsometricStackLayer[]Layers, top of the stack first — label, optional sublabel, optional accent.
sizenumber380Rendered width in px.
defaultExpandedbooleanfalseStart pinned open (also the reduced-motion state).
gapnumber44Vertical gap between plates when expanded, in px.
stiffnessnumber240Base explode-spring stiffness (deeper plates get a softer spring).
dampingnumber26Explode-spring damping.
classNamestringAdditional CSS classes.