Components
Progress
Shows how much of a task is done, or that work is underway with no known duration. It reports state truthfully instead of faking completion.
Usage
A task whose completion can be measured, or whose duration is unknown.
Do and don't
- Do. Name the bar and say what is being processed nearby.
- Don't. Move it backwards for effect or use it for a single button action.
Props
label; required accessible name for the bar.value; current amount. Omit it for an indeterminate task.max; upper bound, default 100.showValue; prints the numeric amount beside the label in determinate mode.
Behavior and states
Determinate progress exposes aria-valuemin, aria-valuemax and aria-valuenow. Indeterminate progress marks the element aria-busy and pulses a bar at 40% width. The fill uses the shared accent token, so it follows the appearance and accent preferences without a component change. The width transition is removed under reduced motion.
Accessibility
The bar has the progressbar role and a required name. Pair it with a sentence that says what is being processed and what the person can do meanwhile. Do not make the percentage the only description, and do not announce every increment to a live region.
Responsive
The bar fills its container. Keep the label above it so narrow panels do not squeeze the value into an unreadable column.
Related
States & Feedback defines the loading vocabulary, Skeleton handles unknown layout, and Button owns in-flight actions.