Stats

Numbers count up once when they scroll into view, on cards that lean toward the pointer.

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

AnimatedCounter props

PropTypeDefaultDescription
valuenumberNumber the counter counts up to.
prefixstring""Text placed before the number, such as "
quot;.
suffixstring""Text placed after the number, such as "+" or "%".
decimalsnumber0Number of digits shown after the decimal point.
durationnumber1.8Seconds.
classNamestringExtra classes added to the number element.

StatsSection props

PropTypeDefaultDescription
statsStat[]The numbers to show, each with a 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