Stop Rebuilding UI

Stats Comparison With Delta Callout

A period comparison stats block for React and Next.js with a centerpiece text-4xl NumberFlow delta, muted from-to labels, side-by-side baseline values, and semantic trend arrow built with shadcn/ui and Tailwind CSS

Scroll to load preview

Highlight a period-over-period swing with this delta-callout comparison stats card for React and Next.js. Features a centerpiece text-4xl NumberFlow animated delta value, a muted "from X to Y" sublabel, side-by-side previous and current period tiles with tabular-nums values, an emerald / red TrendingUp or TrendingDown arrow in the header, and a motion/react parent entrance with useReducedMotion guard. Built with TypeScript, NumberFlow from @number-flow/react, shadcn/ui primitives, motion/react entrance animations, Lucide React icons, and Tailwind CSS. Perfect for MRR deltas, experiment winners, quarterly review cards, and executive summary widgets.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.