Progress
A determinate bar for a known percent. Not a spinner and not a gauge.
Default
value and model-value are aliases. max defaults to 100.
Types
type locks the fill to a status color. Use it when the meaning is already known.
Colors
colors is a threshold map: the fill uses the last key the percent has crossed.
Stops
stops draw ticks on the track. tooltip wraps each tick. aria-label is used when there is no tooltip.
Size
Default height is 4px. width and height accept a number (px) or any CSS length.
Best practices
- Progress is for a known fraction: upload, quota, a build step with a percent. An unknown wait is Spinner or Loading Dots. A score is Gauge.
- Pair the bar with visible numbers nearby —
873 MB / 10 GB. The bar alone is not a value. typeis a fixed status.colorsis for a bar that changes meaning as it fills, such as quota headroom.- Stops mark policy thresholds, not decoration. Give each one a tooltip the user can read on hover.
- Do not animate the value yourself on every frame. Pass the latest percent and let the indicator transition.