Stats 8 - Metric cards with drawn sparklinesPro
Three bordered metric cards, each pairing a counting value and change label with a small SVG sparkline that draws itself on scroll. Use it to show momentum over time on a marketing or investor page.
About Stats 8
Three bordered metric cards, each pairing a counting value and change label with a small SVG sparkline that draws itself on scroll. Use it to show momentum over time on a marketing or investor page.
Stats 8 is a pro stats block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 110 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- sparkline
- cards
- trend
- svg
- number ticker
- line chart
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/stats-08Dependencies installed automatically: lucide-react, motion.
Uses: number-ticker, reveal, use-reduced-motion, utils.
Usage
import Stats08 from "@/components/blocks/stats-08"
export default function Page() {
return <Stats08 />
}