Bar Chart

Extruded bars with a lit front, shaded side and bright top. They grow from the floor when scrolled into view. Hover or tap a bar for its value.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

BarChart3D props

PropTypeDefaultDescription
dataBarDatum[]Bars to draw, each with a label and a number.
heightnumber240Plot height in px.
depthnumber22Bar depth (the extrusion) in px.
format(v: number) => string(v) => v.toLocaleString()Format the value label.
classNamestringExtra classes added to the outer element.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks