ProgressRing
How far a task has got, from 0 to 1, as a ring with the percentage in its middle.
Stability: experimental
Props
| Prop | Type | Default | Means |
|---|---|---|---|
value | number | How far it has got, from 0 to 1. | |
label | string | Progress | What is in progress; its accessible name. |
size | "sm" | "md" | "lg" | md | 40, 64 or 96 points across. |
States
| State | Looks like |
|---|---|
default | Twelve segments round a circle, as many filled as the value has reached, and the percentage. |
Accessibility
| role | progressbar |
| name | The label prop. |
| focus | Never focused. |
| notes | A real progress element carries the value, so assistive technology reads the percentage. |
Theme tokens
color.raised color.primary color.ink radius.full text.caption
Example
<ProgressRing value={0.4} label="Uploading" />