Home / Blocks / Marketing / Stats Sections
8 blocks in this section

Shadcn Stats Sections and Counters

Put real numbers behind a claim with counter, progress, trend, and summary-card layouts for landing pages, about pages, and dashboards.

How it works

Three steps to working code

Install a block and the files land in your repository. Nothing calls back to us.

  1. terminal

    $ npx shadcn@latest add @shadcnstore/statistic-1

    ✓ Checking registry

    ✓ Installing dependencies

    01

    Run one command

    Every preview above prints its own. The CLI writes the block and the components it needs into your project.

    Installation docs
  2. your project 3 files added

    components/

    ├─ ui/

    ├─ button.tsx

    └─ navigation-menu.tsx

    └─ statistic-1.tsx

    02

    Get real files

    React, TypeScript and Tailwind v4, with no framework imports. Next.js, Vite, Remix and Astro all work.

  3. statistic-1.tsx

    <Menu.Trigger

    - asChild

    + render={<button />}

    />

    03

    Edit it as your own

    Built on Base UI, not Radix, so keyboard and focus behaviour come from the primitive.

Blocks that hold state already carry the use client directive the Next.js App Router needs.

Guide

Stats sections and animated counters#

A number on a landing page is a claim. These sections are built so the claim is easy to read and hard to misread: a large figure, a label that says what it counts, and room for the qualifying line that keeps it honest.

The eight stats sections#

  • Statistic 1: a metrics grid with progress indicators, for figures that sit against a target. Free.
  • Statistic 2: a side-by-side layout pairing company metrics with a growth narrative. Free.
  • Statistic 3: platform statistics with trend indicators and progress bars.
  • Statistic 4: a four-metric growth grid with year-over-year context and a closing call to action.
  • Statistic 5: a business dashboard with summary cards and detailed analytics.
  • Statistic 6: a clean metrics grid for key performance indicators and nothing else.
  • Statistic 7: an analytics board pairing sales by category and recent transactions with four summary figures.
  • Statistic 8: a sales analytics section with a monthly revenue table, top customers and performance figures.

How the counters animate#

The counter layouts run from zero to the final value once the section enters the viewport, and they settle into the number rather than stopping dead on it. The animation is driven by an intersection observer, so it fires when the section is actually seen instead of on page load, and it runs once rather than every time somebody scrolls past.

Where a visitor has asked for reduced motion, the final value renders immediately. A counter is decoration, and decoration is the first thing that should stop when somebody has said movement makes them unwell.

Writing a number that survives scrutiny#

  • Give the period. A figure without a timeframe cannot be checked, so it will not be believed.
  • Give the base with a percentage. Ninety percent growth from ten customers is a different sentence from ninety percent from ten thousand.
  • Round consistently. Mixing an exact figure with a rounded one in the same row reads as cherry-picking.
  • Leave the slot out rather than filling it. Four honest numbers beat six with two invented.

Each layout keeps room for a short qualifying line under the figure for exactly this reason.

Stats sections versus dashboard KPI cards#

These are marketing statistics: large type, generous spacing, sized for a full-width landing page section. The KPI cards and dashboard widgets are the product equivalent, with denser type, card chrome and trend indicators against a previous period, built to sit in a grid inside an app shell. The two are not interchangeable, and using one in the other place is immediately visible.

Where a stats section belongs on the page#

Under the hero when the numbers are the strongest opening argument, or after the features section when they are evidence for a claim already made. A logo cloud does the same job with names rather than figures, and testimonials do it with words. Most pages need one of the three, not all three in a row.

FAQ

Stats Sections questions, answered

What people ask before choosing a block from this collection.

The counter layouts animate from zero to the final value once the section enters the viewport, and settle rather than stopping abruptly. Where a visitor has asked for reduced motion, the final number renders immediately instead.
Show whichever is true and checkable. A percentage without a base is the classic misleading stat, so the layouts here leave room for a short qualifying line under each figure. If a number cannot be defended, leaving the slot out is better than filling it.
These are marketing statistics, sized and spaced for a landing page. The KPI cards and dashboard widgets are built for a logged-in product surface, with denser type, trend indicators and a card chrome that matches the rest of an app shell.
Statistic 1 and Statistic 2 are free, covering the progress-indicator grid and the side-by-side growth layout. The trend, dashboard-summary and metric-grid variants are Pro. See the pricing page.

Documentation

The components behind these blocks

How to install, customise and combine the shadcn/ui components this collection is built from.

Free & Premium Templates

Launch Faster with Complete Templates

Love these blocks? Get our free dashboard and landing page templates with 30+ pre-built pages and all the components you need. Premium templates with advanced features launching soon at $69.

Free Templates Now
30+ Pages Included
Premium Coming Soon