Usage Meter

Shows how much of a quota has been used.

Sandbox storage38 / 100 GB

Snapshots kept for 30 days

x
Agent runs8,420 / 10,000 runs

Resets on Nov 1

x
Seats24 / 25 seats

1 seat left on this plan

x

Installation

pnpm dlx shadcn@latest add @paneui/usage-meter

Usage

Examples

Percent and Thresholds

Accessibility

Renders a meter (role="meter") labelled by label, with value text like "8,420 of 10,000 runs".

API Reference

Built on the Meter primitive. Only the props this library adds or changes are listed; everything else passes through.

UsageMeter

Also accepts every prop of Meter.Root.

label*
ReactNode
What is being measured.
value*
number
Amount used.
max= 100
number
The quota.
unit
string
Suffix for the numbers.
description
ReactNode
Line under the bar.
warnAt= 0.75
number
Share where the bar turns warning.
dangerAt= 0.9
number
Share where it turns destructive.
readout= "value"
"value" | "percent" | "none"
What the right side shows.
formatOptions
Intl.NumberFormatOptions
Number format for the readout.
PropTypeDefaultDescription
label*ReactNode—What is being measured.
value*number—Amount used.
maxnumber100The quota.
unitstring—Suffix for the numbers.
descriptionReactNode—Line under the bar.
warnAtnumber0.75Share where the bar turns warning.
dangerAtnumber0.9Share where it turns destructive.
readout"value" | "percent" | "none""value"What the right side shows.
formatOptionsIntl.NumberFormatOptions—Number format for the readout.
data-level
ok, warn or danger.
Data attributeDescription
data-levelok, warn or danger.