On this page
Overview
Show code, UploadingFile.tsx
Variants
Steps
The track can split into equal steps that fill in turn.
Show code, SetupSteps.tsx
Anatomy
Progress
Label
Value
Track
Indicator
Show code, ProgressAnatomy.tsx
Behaviour
Amount known
The bar counts the work done, such as 40 of 100.
Amount unknown
While the amount of work is unknown, the indicator sweeps along the track.
Show code, PreparingExport.tsx
From preparing to done
Start with an unknown amount, show the share once it is known, and replace the bar with the result.
Show code, ExportMembers.tsx
Adapting to width
The bar fills its container. The label and the value wrap onto two lines where they don't fit.
Show code, LongTaskName.tsx
Rules
One bar stands for one task.
Use it when
- A task whose completion can be measured, such as an upload or an import
- A task that has started but can't be measured yet, such as preparing an export
Show code, OneBarForBatch.tsx
Show code, BarPerFile.tsx
Moving forward
Never move the bar backwards or hold it just short of the end, and offer a way to cancel a long task beside it.