Waffle Chart

Waffle chart that fills a 10 column grid of squares to show a value out of a total, with a label and count above. Clear for adoption rates and percentages.

src/registry/ui/waffle-chart.tsx/r/waffle-chart.json
Adoption42/100

Adoption

Installation#

bash
npx shadcn@latest add @minidev/waffle-chart

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/waffle-chart.json

Usage#

tsx
import { WaffleChart } from "@/components/ui/waffle-chart"

export function Example() {
  return (
    <WaffleChart />
  )
}

API reference#

WaffleChart props
PropTypeDefault
valuenumber42
totalnumber100
labelstring"Adoption"
classNamestring-

Examples#

All chart components