Stop Rebuilding UI

Stats Dumbbell Chart Card

A dumbbell chart stats card for React and Next.js with horizontal rows showing two connected dots per category representing start and end values, a connecting line between dots, delta labels, and semantic direction colors built with shadcn/ui and Tailwind CSS

Scroll to load preview

Compare value ranges across categories with this dumbbell chart stats card for React and Next.js. Features horizontal rows where each category shows two positioned dots connected by a thin line, the left dot represents the previous period value in var(--chart-2), the right dot represents the current value in var(--chart-1), a connecting line showing the gap, delta labels on the right, and semantic emerald or red coloring based on direction. Built with TypeScript, pure CSS positioned elements, motion/react parent entrance with useReducedMotion, and Tailwind CSS. Perfect for before-after comparisons, salary range visualizations, min-max performance ranges, and A/B test metric comparisons.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.