Stats Section React block for Tailwind CSS v4
v1.0.0Added in 1.6.0
A React stats section of big numbers with labels: plain figures, cards, hairline columns, an inverted band or a split grid, rolling up on view.
The server and screenshots render the final numbers. The first time the list scrolls into view on the client, each number drops to zero and its digits roll up to the value (off under reduced motion or with countUp off). Numbers are formatted with the locale's group and decimal marks. Four stats sit two by two on phones and in one row from 1024px; each label is a <dt> read before its value.
Stats Section is a Pro React block in the React marketing sections category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add stats-section, together with Marketing Section, Animated Counter, Motion presets, Tones and UIProvider.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add stats-sectionStats Section is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import StatsSection from @/components/blocks/stats-section.
// app/(marketing)/about/page.tsx
import { StatsSection } from "@/components/blocks/stats-section"
export default function AboutPage() {
return (
<StatsSection
variant="cards"
title="Acme in numbers"
stats={[
{ value: 12000, suffix: "+", label: "Teams" },
{ value: 99.99, decimals: 2, suffix: "%", label: "Uptime" },
{ value: 38, suffix: "%", label: "Faster delivery" },
]}
/>
)
}Props
eyebrowdefault""ReactNodeThe small uppercase line over the title.
titledefault"Small teams, big numbers"ReactNodeThe section title; an empty string hides it.
descriptiondefault"Acme keeps 12,000 teams in sync, from the first plan to the last release note."ReactNodeThe paragraph under the title.
actionsReactNodeButtons under the description.
statsdefault"STATS_SECTION_SAMPLE"StatsSectionItem[]{ value, decimals?, prefix?, suffix?, label, description? }; up to four per row.
variantdefault"plain""plain" | "cards" | "divided" | "band" | "split"Bare numbers, raised cards, numbers under a hairline, band (an inverted full-width strip with huge numbers and short labels; descriptions are left out, a non-neutral tone draws an accent bar) or split (the heading on the start side, a two by two grid of figures beside it, stacked on phones; always start aligned).
aligndefault"center""start" | "center"Where the heading and each stat sit.
sizedefault"lg""md" | "lg"Number size: md 26 to 40px, lg 30 to 56px.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The color of the numbers; neutral is the text color.
countUpdefaulttruebooleanRolls the numbers up once when they first scroll into view.
durationdefault1.2numberSeconds each digit takes to settle.
localedefault"en-US"stringNumber formatting (group and decimal marks); default the UIProvider's locale, else en-US.
backgrounddefault"none""none" | "muted"A gray well behind the section.
spacingdefault"md""none" | "sm" | "md" | "lg"Vertical padding, as in MarketingSection.
dividerdefaultfalsebooleanA hairline above the section.
classNamestringClasses for the <section>.
classNamesPartial<Record<StatsSectionSlot, string>>Classes for container, list, item, value, label and description.
Parts
STATS_SECTION_SAMPLE
constantFour sample stats: 12,000+ teams, 99.99% uptime, 4.9/5 rating, 38% faster delivery.
StatsSectionItem
typeOne stat: value, decimals, prefix, suffix, label and description.
StatsSectionProps
typeProps of StatsSection.
Examples
Cards in a gray well
Raised cards on the muted band, numbers in the brand orange.
Divided, start aligned
Numbers under hairlines, read left to right, with a short intro.
Three stats, smaller
Three columns at the medium size, no heading.
German number format
locale de-DE writes 12.000 and 99,99.
Inverted band
Huge numbers on a full-width strip in the primary color, with short labels.
Split with the heading
The heading on the left and four figures in a two by two grid beside it.
Files
- components/blocks/stats-section.tsx
FAQ
Is the React Stats Section block free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Stats Section?
Run npx wingo-ui@latest add stats-section. It also adds the Wingo UI items it builds on (Marketing Section, Animated Counter, Motion presets, Tones and UIProvider). With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/stats-section.
How does Stats Section behave on phones?
Four stats sit two by two on phones and in one row from 1024px; each label is a <dt> read before its value.
See also
Used in
More React marketing sections
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.