# Stats Section

> 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.

Category: Sections · MotionKit Plus · Updated 2026-11-12 · Live demo: https://www.motionkitui.com/components/stats-section

## When to use it

Landing pages, about pages, investor and impact pages, and product launches that want social proof backed by numbers.

## How it works

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.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/stats-section` after adding their registry token from https://www.motionkitui.com/account.

## Props

| 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. |

## Accessibility

- **Keyboard: Not applicable.** Nothing to operate: it's read-only content.
- **Screen readers: Pass.** A description list of label and figure pairs. Each final figure is read once, not every step of the count, and the trend lines are hidden.
- **Reduced motion: Pass.** With reduced motion on, numbers and lines appear at their final values straight away.
- **Colour contrast: Pass.** Figures measure 15.5:1 on their cards and labels 7.1:1.
