Columns of testimonials drifting in opposite directions at different speeds, with soft faded edges. Hover to pause.
A row of headline numbers that count up one after another as the section scrolls into view, each with a small trend line drawing itself underneath.
Customize
Usage
import { StatsSection } from "@/components/motionkit/stats-section";
<StatsSection
heading="Trusted by teams who care about the details"
stats={[
{ value: 12400, suffix: "+", label: "Teams shipping with it", trend: [3, 4, 4, 6, 7, 9, 12] },
{ value: 99.98, suffix: "%", decimals: 2, label: "Uptime over the last year" },
{ value: 4.9, suffix: "/5", decimals: 1, label: "Average review score" },
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Numbers count up
Scrolls into view
Trend lines draw
Scrolls into view
Landing pages, about pages, investor and impact pages, and product launches that want social proof backed by numbers.
useInView starts the section once a third of it is on screen. Each figure counts up with Motion's animate function, writing straight into the DOM so the card doesn't re-render every frame, and starts 0.12 seconds after the one before. The trend lines are SVG paths whose pathLength animates from 0 to 1. Screen readers get the final figure in a hidden span, not the moving one.
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | "By the numbers" | Small label above the heading; empty for none. |
| heading | string | — | The section heading; empty for none. |
| stats | { value; label; prefix?; suffix?; decimals?; trend? }[] | four samples | The figures. trend is a few numbers for the line under each one. |
| accent | string | "#5FAEB4" | Colour of the trend lines and eyebrow. |
| duration | number | 1.6 | Seconds each number takes to count up. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/stats-section. It saves the file to components/motionkit and installs its dependencies.
Stats Section is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, numbers and lines appear at their final values straight away.
Columns of testimonials drifting in opposite directions at different speeds, with soft faded edges. Hover to pause.
A complete pricing table: a sliding monthly/yearly switch, prices that roll to their new digits and a featured plan with an orbiting light.
A complete landing-page hero: a pointer-lit grid, a headline that rises word by word and a product window that tilts flat as you scroll.
By the numbers
The live preview is free to explore. Plus unlocks the source for Stats Section and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { StatsSection } from "@/components/motionkit/stats-section";
<StatsSection
heading="Trusted by teams who care about the details"
stats={[
{ value: 12400, suffix: "+", label: "Teams shipping with it", trend: [3, 4, 4, 6, 7, 9, 12] },
{ value: 99.98, suffix: "%", decimals: 2, label: "Uptime over the last year" },
{ value: 4.9, suffix: "/5", decimals: 1, label: "Average review score" },
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Numbers count up
Scrolls into view
Trend lines draw
Scrolls into view
By the numbers