Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProShows how much of the storage plan is used, adds a file's size as a preview of the new total before accepting, refuses files that do not fit with the exact number, and offers an upgrade link at the limit. Use this when uploads count against a plan.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Storage or bandwidth is limited by plan and people should know before they hit the wall.
Do not use it when: For unlimited storage, skip the meter and keep per-file limits.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
used | number | 80 MB | Bytes already used. |
limit | number | 100 MB | Bytes the plan includes. |
onUpgrade | () => void | - | Called by the upgrade button. |
onAccept | (files) => void | - | Called with the files that fit. |
The pattern ships with a Testing Library test (upload-quota-meter.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.