Base
Pure CSS
Progress
The native <progress> bar; indeterminate for “preparing”, warning/danger tones and an accessible label.
Real scenarios
The component as it is used in a product — not a specimen grid.
The upload tray
Done reads green, a stalled one wears danger, and the newest file has no number yet — an indeterminate bar tells the truth better than a fake 3%.
-
launch-teaser.mp4 Ready — 214 MB
-
brand-plate.png 4.1 of 6.1 MB
-
voice-over.wav Connection lost at 34%
-
poster-final.pdf Preparing…
Quota bars, and a re-check in flight
Tones carry meaning here: brand blue for the team plan, warning at 80% — and while the server recounts, an indeterminate bar stands in.
Storage
41.2 of 60 GB
Build minutes
1,610 of 2,000 min
Numbers as of the last visit.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| value | number | null | 0 to max; without a value the bar goes indeterminate. |
| tone | string | accent | accent · success · warning · danger · brand. |
| label | string | null | The aria label for screen readers. |
Snippet
<x-nx::progress :value="67" label="آپلود ویدئو" />
<x-nx::progress tone="danger" :value="34" label="بارگذاری ناموفق" />
<x-nx::progress label="در حال آمادهسازی" />