Stop Rebuilding UI

Stats Stacked Percentage Bar Card

A 100% stacked horizontal bar stats card for React and Next.js with a single thick segmented bar showing proportional distribution, chart-token colored flex segments, a legend with percentages, and a dominant-segment header callout built with shadcn/ui and Tailwind CSS

Scroll to load preview

Visualize segment distribution with this stacked percentage bar stats card for React and Next.js. Features a single thick horizontal bar divided into colored flex segments proportional to each category value, chart-token fills from var(--chart-1) through var(--chart-4), inline segment labels for segments wider than 15%, a legend row below with color dots, labels, and tabular-nums percentages, and a header callout identifying the dominant segment. Built with TypeScript, pure CSS flex layout, motion/react parent entrance, and Tailwind CSS. Perfect for traffic source breakdowns, device distribution cards, revenue channel composition, and audience segment visualizations.

FAQ

Last updated on April 12, 2026

Was this page helpful?

Sign in to leave feedback.