Stop Rebuilding UI

Stats Sparkline Card With Range

A sparkline stats card for React and Next.js with Recharts ReferenceLine min and max range bounds, inline high and low labels on the sparkline edges, and a NumberFlow animated current price built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize a value inside its historical range with this sparkline stats card with range bounds for React and Next.js. Features a ChartContainer-wrapped Recharts AreaChart with ReferenceLine min and max bounds, gradient fill via var(--chart-1), high and low edge labels positioned on the reference lines, a fixed 120px chart body, and a NumberFlow-animated headline price displayed above the spark. Built with TypeScript, ChartContainer from shadcn/ui, Recharts AreaChart with ReferenceLine, NumberFlow from @number-flow/react, motion/react parent entrance, Lucide React icons, and Tailwind CSS. Perfect for commodity price trackers, 52-week stock range cards, temperature range monitors, and server utilization dashboards.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.