Sections
StatsAnimatedSection
Animated counting stats that trigger on scroll-into-view
Quick Preview
By the numbers
0+
Components
0k+
Downloads
0+
GitHub stars
0
Contributors
Installation
# No extra dependencies
// Copy component fromsrc/components/sections/StatsAnimatedSection.tsx
Usage
import StatsAnimatedSection from '@/components/sections/StatsAnimatedSection'<StatsAnimatedSectioneyebrow="By the numbers"stats={[{ label: 'Users', end: 10000, prefix: '', suffix: '+' },{ label: 'Revenue', end: 2.4, prefix: '$', suffix: 'M', decimals: 1 },]}/>
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 | Stat[] | - | Array of stat objects with end, prefix, suffix, label |
eyebrow | string | - | Small label above stats |