ProgressBar
A progress bar.
Determinate progress
progress takes a 0–100 number; out-of-range values are clamped to [0, 100] (the original doesn't clamp — a NaN produces an invalid width and attribute value).
Indeterminate progress
progress={false} (also the default) means "in progress" with an unknown total: the fill indicates activity with a sliding animation and reports no specific value.
Advancing with an async task
A common pattern is to start at indeterminate progress and switch to a determinate value once quantifiable progress is available.
API
The bar is read-only and not focusable; it announces the value through aria-valuenow / aria-valuemin / aria-valuemax. With determinate progress aria-valuenow is the clamped value; with indeterminate progress it is omitted. To give the bar an accessible name, use aria-label.
See also
- Common pass-through and
refrules: Common props