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.json

Or, 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

Component props
PropTypeDefaultNotes
resourcesUsageResource[]DEFAULT_USAGE{ id, label, unit, limit, segments: { label, value }[], decimals? }.
periodstring'Oct 1 – Oct 31'Billing period label.
warnAtnumber0.8Fraction at which a bar turns amber.
loadingbooleanfalseSkeleton that mirrors the final layout.
onUpgrade / titleAs() => void / h2–h4'h3'Upgrade action and heading level.
classNamestring—Extra classes merged onto the card.

Dependencies

  • motion
  • lucide-react
  • 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…

See all 14 Product UI components