Stop Rebuilding UI

Stats Waffle Chart Card

A waffle chart stats card for React and Next.js with a 10x10 grid of colored squares showing proportional segment distribution, chart-token colored cells, a legend with percentages, and tabular-nums values built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize proportional distribution with this waffle chart stats card for React and Next.js. Features a 10x10 grid of 100 small colored squares where each square represents 1% of the total, four segments colored with var(--chart-1) through var(--chart-4) tokens, a legend row below with color dots and percentage labels, and a header showing the dominant segment. Built with TypeScript, pure CSS grid layout, motion/react parent entrance with useReducedMotion, and Tailwind CSS. Perfect for market share visualizations, browser distribution cards, survey response breakdowns, and audience composition dashboards.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.