Skip to main content
61 · statistics-countersMedia & Data Display5 Variations

Statistics and Counters

Five sample-data metrics and telemetry layouts honoring prefers-reduced-motion: animated number counters with replay button, metric cards, horizontal key-figure band, infographic progress visualization, and GSAP-orchestrated statistics showcase.

statisticscountersmetricsinfographicgsap
Animated Number Counters
statistics-counters/animated-number-counters
Loading variation statistics-counters/animated-number-counters...

Component Information

Tabular-numeral metric counters with smooth requestAnimationFrame tweening, immediate final-value rendering under reduced motion, and manual Replay button.

Variation ID
statistics-counters/animated-number-counters
Motion Engine
css
Source File
src/labs/components/components/statistics-counters/variations/animated-number-counters.tsx
Reduced Motion & Accessibility

Bypasses requestAnimationFrame interpolation and immediately displays final values.

  • Explicitly labels all metrics as illustrative sample figures.
  • Includes aria-label on numeric outputs so screen readers hear final target values.
Dependencies
  • lucide-react^0.553.0Required

    RotateCcw icon for replay button

Usage Documentation

import { AnimatedNumberCounters } from '@/src/labs/components/components/statistics-counters';

export function CountersBand() {
  return <AnimatedNumberCounters />;
}

Props API (3)

PropTypeDefaultDescription
headingstring—Section headline.
metricsreadonly StatMetric[]—Configurable numeric sample metrics.
disclaimerstring—Explicit illustrative data note.