string
Accessible name while idle. Falls back to the label.
string
The idle label. Also the loading label unless `loadingLabel` is set.
number
default: 300
Duration of each progress step's transition, in ms.
MaterialCommunityIconsGlyphs
default: "alert-circle-outline"
string
default: "Try again"
Label once the task failed. The button stays pressable, to retry.
MaterialCommunityIconsGlyphs
Leading icon while idle and loading.
"fill" | "bar"
default: "fill"
How progress is drawn inside the surface: `fill` sweeps a darker (or, in
the dark scheme, lighter) tone of the button across it; `bar` runs a 4dp
line along its bottom edge.
StyleProp<TextStyle>
Applied to the label: font family, size, weight.
string
Label while loading, e.g. "Calculating route…".
ButtonMode
default: "filled"
() => void
Fires in every status but `loading`, where the button is busy.
() => void
Called `successDuration` ms after the button turned to success.
number
Completion while `status` is `"loading"`, from 0 to 1. Leave it undefined
when the task cannot say how far along it is, for an indeterminate sweep.
string
Colour of the fill or the bar. Derived from the button's colours if unset.
ProgressButtonStatus
default: "idle"
Which moment of the task to show. Controlled: the button never moves
itself from one status to the next — the caller does, as the task reports.
StyleProp<ViewStyle>
Applied to the surface: corner radius, padding, width.
number
default: 2000
How long the success status holds before `onSuccessEnd` fires, in ms.
`0` keeps it until the caller changes `status`.
MaterialCommunityIconsGlyphs
default: "check"
string
default: "Done"
Label once the task succeeded.
string
Colour behind the bar, and behind the fill on outlined and text.