StatsSection
A 4-column metrics showcase with large primary-colored values, labels, and optional descriptions
Quick Preview
- 50+
- Core learning blocks
- 100+
- Inspectable examples
- 0 โ Pro
- Progression mindset
- 1 place
- Unified reference
Routing, rendering, UI, and workflow in one place
Components and patterns you can study line by line
A path from fundamentals to professional systems
Tracks, components, articles, and design study together
With Heading
By the numbers
Real metrics from our growing community.
- 50+
- Core learning blocks
- 100+
- Inspectable examples
- 0 โ Pro
- Progression mindset
- 1 place
- Unified reference
Routing, rendering, UI, and workflow in one place
Components and patterns you can study line by line
A path from fundamentals to professional systems
Tracks, components, articles, and design study together
Installation
// Add stat data tosrc/lib/constants.ts โ STATSsrc/types/index.ts โ StatItem// Copy the component fromsrc/components/sections/StatsSection.tsx
Usage
import { StatsSection } from '@/components/sections/StatsSection'// Default โ uses STATS from constantsexport default function AboutPage() {return <StatsSection />}// Custom statsconst stats = [{ value: '10M+', label: 'API calls daily' },{ value: '150+', label: 'Countries served', description: 'Global coverage' },]export default function AboutPage() {return <StatsSection stats={stats} title="Platform at scale" />}
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
stats | StatItem[] | - | Array of stat items (defaults to STATS from constants) |
title | string | - | Optional section heading |
subtitle | string | - | Optional section sub-heading |
className | string | - | Additional CSS classes |
Features
- โ4-column responsive grid (2 on mobile)
- โPrimary-colored value display
- โOptional title + subtitle header
- โData-driven: edit STATS in constants.ts