Stats Card 2 - KPI with sparkline
KPI cards that pair the headline number and change indicator with an area sparkline drawn in a chart color, animating its stroke into view. Use it when a trend over the last few weeks matters as much as today's value.
About Stats Card 2
KPI cards that pair the headline number and change indicator with an area sparkline drawn in a chart color, animating its stroke into view. Use it when a trend over the last few weeks matters as much as today's value.
Stats Card 2 is a free stats card block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 97 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.
- stats
- kpi
- sparkline
- trend
- dashboard
- area-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-card-02Dependencies installed automatically: lucide-react, motion.
Uses: reveal, use-reduced-motion, utils.
Usage
import StatsCard02 from "@/components/blocks/stats-card-02"
export default function Page() {
return <StatsCard02 />
}