Stats With Description
Two-column stats section: a heading and a couple sentences of context on one side, and a 2x2 grid of stat values with short descriptions on the other. Useful for an about-style page section where the numbers need a sentence of framing rather than standing alone.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/stats-with-description.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/stats/stats13.tsx instead.
Usage
The file also exports stats13Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Stats13, stats13Demo } from "@/components/blocks/stats/stats13"; export default function Page() { return <Stats13 {...stats13Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | string | none | Section heading in the text column. |
| paragraph | string | none | Narrative paragraph giving context for the stats. |
| stats | StatItem[] | none | Stat tiles rendered in a 2x2 grid. |
| className | string | none | Extra classes for the outer section element. |
Types
type StatItem = { label: string; value: string; description?: string; };
Behavior notes
- Purely presentational: there is no count-up or scroll animation on the stat values, they render at their final value immediately.
- The stats grid is a fixed 2-column layout regardless of item count; supplying more than 4 stats wraps to additional rows rather than reflowing to more columns.
- The text column and stats column are independent and both always render; there is no conditional collapse when one side has less content.
More Stats Blocks
View all →Simple Four Stat Row
A plain 4-column row of big numbers with labels, no icons or chrome.
Stats With Icons
Bordered stat tiles, each topped with a lucide icon above the number.
Big Hero Stat
One dominant, oversized stat with smaller supporting stats below it.
Stats With Progress Bars
A vertical list of stats, each paired with a horizontal progress bar toward a goal.
Animated Counter Row
A 4-stat row whose numbers count up from 0 on mount.
Dashboard Style Grid
A dense analytics-dashboard grid with trend deltas and inline sparklines.