Usage Quota Meter
A billing-period usage card: hairline tracks fill with stacked segments on the house ease, figures count up in tabular numerals, a limit tick marks 100%, and bars go amber near the limit and rose when exceeded — always with a text label.
Try it: Scroll it into view; hover or focus a row for its breakdown.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/usage-quota-meter.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/usage-quota-meter. You can also copy the source into components/ui/usage-quota-meter.tsx (view on GitHub).
Usage
import { UsageQuotaMeter } from '@/components/ui/usage-quota-meter'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
resources | UsageResource[] | DEFAULT_USAGE | { id, label, unit, limit, segments: { label, value }[], decimals? }. |
period | string | 'Oct 1 – Oct 31' | Billing period label. |
warnAt | number | 0.8 | Fraction at which a bar turns amber. |
loading | boolean | false | Skeleton that mirrors the final layout. |
onUpgrade / titleAs | () => void / h2–h4 | 'h3' | Upgrade action and heading level. |
className | string | — | Extra classes merged onto the card. |
Dependencies
motionlucide-react
Related Product UI components
- Onboarding Stepper
A three-question setup flow on one continuous surface: a progress capsule stretches into the current step with a shared-layout spring, panels slide in the direction of travel, validation speaks…
- Deploy Timeline
A build pipeline that reads like a calm status page: dots resolve to spinners to ticks, the rail fills as steps complete, elapsed times tick in tabular figures, each row expands into logs, and…
- Sortable Data Table
A dense, quiet deployments table: sortable headers with aria-sort, search and status filter chips, rows that glide to their new order, hairline hover and selected tints, a bulk-action bar that…
- Vibrancy Context Menu
A macOS-grade context menu on regular glass that blooms from the exact pointer position, flips near the edges, glides a highlight capsule between rows, and blinks the chosen item once before…
- Date Range Picker
A calendar that previews the range as you hover with a continuous tinted band between endpoint pills, month pages that slide in the direction you move, preset chips, full grid keyboard support and a…
- Detent Sheet
An Apple-style bottom sheet resting at peek, half and full detents — velocity-aware drag with rubber-banding, the background recedes and dims as it rises, and a grabber that also works with tap and…