Determinate progress bar with semantic colour variant.
Use Progress when you know completion percentage (upload, multi-step wizard). For indeterminate waits without a percent, prefer Spinner or skeleton placeholders.
Do
- Set
valueandmaxso assistive tech can announce percent complete. - Keep
maxstable for the operation — do not change mid-flight without resettingvalue. - Use
variantfor semantic emphasis (dangeron failure paths) sparingly.
Don't
- Show 0–100% for unknown-duration work — use indeterminate patterns instead.
- Animate the bar without respecting
prefers-reduced-motion(kernel handles reduced motion).
<twig:Progress variant="primary" :value="42" :max="100" />Compare with Bootstrap progress and Material linear progress.
| Prop | Type | Default | Description |
|---|---|---|---|
variant |
string |
primary |
Semantic colour token |
value |
int |
0 |
Current progress |
max |
int |
100 |
Maximum value |
- Exposes
role="progressbar"witharia-valuenow,aria-valuemin,aria-valuemax. - Pair with visible status text when percent alone is insufficient context.