SShinUI

Counter Stat

A stat card whose number counts up the first time it scrolls into view, using easeOutExpo so the final digits do not crawl. Respects prefers-reduced-motion.

counterstatsintersection-observer
0
Resources indexed
0
Categories
0
Live components

Usage

Drop the file into your project and import it. There is no package to install.

usage.tsx
import { CounterStat } from "@/registry/components/counter-stat";

export function Example() {
  return <CounterStat />;
}

Install prerequisites

Every component here relies only on Tailwind and the cn helper from shadcn/ui.

terminal
npm i clsx tailwind-merge

More in Charts