Stats 27

Pro

A conversion stats section with a large live figure and a line chart that sweeps from a flat before line to a rising after line as a handle crosses it or a toggle flips.

Shadcn Stats 27 block

Component data

ID
stats27
Access
pro
Created
Nov 19, 2026
Type
block
Libraries
Radix UI, Base UI, React Aria

Stats 27 block design & features

Stats27 is a before and after stats section built with Tailwind CSS and Motion. A heading, a short summary and a text link sit on the left, with a very large conversion figure and a Before and After toggle on the right, above a wide line chart.

On load a handle sweeps slowly across the chart, turning a flat dashed before line into a rising after line, and the figure counts up with it. Drag anywhere on the chart to scrub the handle, flip the toggle, or use the arrow keys, and the sweep replays on its own every few seconds when left alone.

Reduced motion shows the finished after line. Use it for case studies, product launches and pricing pages that need one clear result.