Storage
Pro7.4 GB of 10.0 GB used 74%
- Documents 3.2 GB 32%
- Voice notes 2.1 GB 21%
- Images 1.4 GB 14%
- Embeddings 0.7 GB 7%
A usage card with a segmented bar that fills segment by segment; past 75% the percentage turns warning, past 90% danger — and the upgrade button is slot-friendly.
The component as it is used in a product — not a specimen grid.
The bar fills segment by segment as the card scrolls in; at 74% the percentage is still calm — one more upload and it turns warning.
Storage
Pro7.4 GB of 10.0 GB used 74%
93% used: the percentage reads danger and the slot button carries a live wire:click with a spinner while it works.
Model tokens
Growth4.66 M of 5.00 M used 93%
| Prop | Type | Default | What it does |
|---|---|---|---|
| limit / used / unit / decimals | number | 100 / null / null / 0 | The cap, the used amount (the categories’ sum by default), the unit and the fraction digits. |
| categories | array | [] | ['Label' => value] or a list of ['label', 'value'] — each category a coloured share of the bar. |
| plan / note / action | string / string / array | null | The plan name, a note (like the reset date) and the action ['label' => …, 'href' => …]. |
| slot:actions | slot | — | Replaces the button — say a Livewire button with wire:click. |
<x-nx::usage-card title="فضای ذخیره" plan="پرو" :limit="10" unit="GB" :decimals="1"
:categories="['اسناد' => 3.2, 'یادداشتهای صوتی' => 2.1, 'تصویرها' => 1.4]"
:action="['label' => 'ارتقای پلن', 'href' => '/billing']" />