Quota Bar

Compact quota bar showing a label, used over max with locale formatting, and a thin accent progress track exposed as an ARIA progressbar for plan limits.

src/registry/ui/quota-bar.tsx/r/quota-bar.json

Installation#

bash
npx shadcn@latest add @minidev/quota-bar

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/quota-bar.json

Usage#

tsx
import { QuotaBar } from "@/components/ui/quota-bar"

export function Example() {
  return (
    <QuotaBar label="API calls" used={7200} max={10000} />
  )
}

API reference#

QuotaBar props
PropTypeDefault
labelstring"API requests"
usednumber72400
maxnumber100000
classNamestring-

Examples#

All pricing and billing components

Learn more