Skip to content
Calm motion: animations on this site only fade, with no movement

Quota usage ​

The limits of a plan as bars, with the use in words

Shows how much of each limit of a plan a team uses, such as storage, seats, or minutes. Near the end of a limit, a bar warns. For parts of one total, use the meter group.

Basic
Audio storage38.6 of 100 GB
Team seats4 of 5
Transcript minutes600 of 600 min
Downloads this month124,300 of 250,000
  • quotas is a list of limits. Each limit has a label, the used amount, the limit, and an optional unit, such as "GB".
  • At the warn share (default 0.8), the bar turns to the warning color and says "Almost full". At the limit, it turns to the danger color and says "Limit reached". A bar never goes past full, but the text shows the real use.
  • locale sets the format of the numbers (default en).
  • The footer slot holds a button or a link, for example to change the plan.
  • Each bar is a meter for screen readers, with the use and the state in words. Change the words with labels or a label pack: almost, full, and of (a function of the use and the limit).

Usage ​

ts
import { BlessQuotaUsage } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
quotas*BlessQuota[]—
warnnumber0.8the share at which a bar warns
localestring"en"the language of the numbers
labelsPartial<{ of: (used: string, limit: string) => string; almost: string; full: string; }>—

Slots

NameScopeDescription
footer—

Released under the MIT License. Character names and artwork belong to their owners.