Isometric Bars

Isometric Bars

An isometric bar chart illustration — extruded bars grow out of a plinth on staggered springs when scrolled into view, with live value counters riding their tops.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/isometric-bars.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-bars.tsx
  4. Import and use.

API Reference

PropTypeDefaultDescription
valuesnumber[][34, 58, 42, 88, 66]Bar values, 0–100.
labelsstring[]Mono labels under each bar.
sizenumber380Rendered width in px.
stiffnessnumber150Growth spring stiffness — higher snaps the bars up harder.
dampingnumber20Growth spring damping — lower overshoots more.
classNamestringAdditional CSS classes.