Duolith docs

ProgressBar

How far a task has got, from 0 to 1; without a value, that work is going on for an unknown time.

Stability: experimental

Props

PropTypeDefaultMeans
valuenumberFrom 0 to 1. Leave it out while the length of the task is unknown.
labelstringText above the bar, and its accessible name.
showValuebooleanfalseShows the percentage at the end of the label row.
tone"primary" | "success" | "danger"primaryThe bar's colour.

States

StateLooks like
determinateThe bar fills to the value.
indeterminateA band slides along the track.

Accessibility

roleprogressbar
nameThe label prop, or Progress.
focusNever focused.
notesaria-valuenow follows the value; none while indeterminate.

Theme tokens

color.raised color.primary color.success color.danger color.ink color.muted radius.full space.2 text.caption

Example

<ProgressBar label="Uploading" value={sent / total} showValue />