Progress
A passive indicator for determinate or indeterminate task progress.
Displays task completion within a bounded range or indicates an indeterminate loading state.
Preview
Section titled “Preview” Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
Installation
Section titled “Installation”Available starting in 0.3.0-rc.1 and later releases. Import progressRoot, progressLabel, progressTrack, progressIndicator, and progressValue from @proto.ui/prototypes-base/progress.
Compose Root, Label, Track, Indicator, and Value:
- Composition roles:
Rootmanages the numeric range;Labelnames the progress bar,TrackholdsIndicator, andValuedisplaysvalueTextor the formatted number. - Determinate and indeterminate modes:
valueclamps to ordered finite[min, max]bounds (equal bounds yield0percentage). Omittingvalueor settingindeterminate={true}marks progress as unknown and withholds an accessible numeric value. - Passive readout: Progress is display-only with no keyboard tab stop or editing events. Updating props synchronizes every part.
Rootand its parts exposevalue,percentage,indeterminate, andstatus.
| Prop | Type | Default |
|---|---|---|
value | number | undefined |
min | number | 0 |
max | number | 100 |
ariaLabel | string | '' |
valueText | string | '' |
indeterminate | boolean | false |
Label, Track, Indicator, and Value take no props.