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
quotasis a list of limits. Each limit has alabel, theusedamount, thelimit, and an optionalunit, such as "GB".- At the
warnshare (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. localesets the format of the numbers (defaulten).- The
footerslot 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
labelsor a label pack:almost,full, andof(a function of the use and the limit).
Usage
ts
import { BlessQuotaUsage } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
quotas* | BlessQuota[] | — | |
warn | number | 0.8 | the share at which a bar warns |
locale | string | "en" | the language of the numbers |
labels | Partial<{ of: (used: string, limit: string) => string; almost: string; full: string; }> | — |
Slots
| Name | Scope | Description |
|---|---|---|
footer | — |