Progress
A linear progress bar. Pass a value 0–100 for determinate progress, or omit it for an indeterminate loading loop. An optional label/value caption row, and a full accessible name wired straight into the native progressbar role.
Installation
npx stepwise-ui add progress
Live
Indeterminate
Label & value
label and showValue add a caption row above the track, matching Slider's own label row. Color isn't stuck to one prop value either - the storage bar below derives its own color from how full it is, the classic "turns yellow, then red" warning.
Props
PropTypeDescription
valuenumber | undefined0–100. Omit for indeterminate.
color'brand' | 'success' | 'warning' | 'danger'Bar color. Default brand.
sizenumberTrack thickness in px. Default 6.
labelstringCaption shown above the track, on the left.
showValuebooleanShow the value on the right. Never shown while indeterminate. Default false.
formatValue(v: number) => stringFormat the displayed value. Default `${n}%`.
classNamestringMerged onto the track.