Current progress between 0 and max. Pass null for indeterminate
max
number
100
Maximum progress value
segments
ProgressSegment[]
—
Parts of one bar side by side: { value, color?, label? }, color one of primary, secondary, success, warning, caution, danger, info, discovery. Takes the place of value
size
"sm" | "md" | "lg"
"sm"
The bar's thickness: sm 4pt (iOS's progress view), md 6pt, lg 8pt (a bar in a stats card)
The color of the filled part; primary is the ink on iOS and the accent on Android. A segmented bar's parts take their own colors
animated
boolean
true
Whether a new value moves the fill by itself (120ms on iOS, 300ms on Android). false puts the fill at each value at once, for a value the screen moves itself
getValueLabel
(value: number, max: number) => string
—
The value read out. Defaults to the rounded percentage, e.g. "67%"
aria-label
string
—
The name read out, when no visible label names the bar
aria-labelledby
string
—
The nativeID of the visible label that names the bar (Android and the web)