Usage Breakdown

Usage breakdown listing several metered items, each with its label, used over limit and a thin accent bar. Use it on billing pages to show where plan limits go.

src/registry/ui/usage-breakdown.tsx/r/usage-breakdown.json

Installation#

bash
npx shadcn@latest add @minidev/usage-breakdown

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/usage-breakdown.json

Usage#

tsx
import { UsageBreakdown } from "@/components/ui/usage-breakdown"

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

API reference#

UsageBreakdown props
PropTypeDefault
itemsUsageItem[]SAMPLE_ITEMS
classNamestring-
All pricing and billing components