Status
Progress indicator
A progress indicator shows that the app is working on something the person asked for: a bar where the result will appear, or a spinner for a short wait in a small space.
In kanso-ui as ProgressIndicator
Variants and sizes
- Determinate:
k-progresswithk-progress__barat the width done. - Indeterminate:
k-progress--indeterminate; the bar slides across the track. - Spinner:
k-spinner(24 px) in rows, buttons and small areas;k-spinner--lg(40 px) for a region or a section of a page.
States
- In progress: the bar grows; when the share is unknown, it slides or the spinner turns.
- Done: remove the indicator and show the result. Confirm with Snackbar only when the result is out of view.
- Failed: remove it and show an InlineAlert (
k-alert--critical) with a way to try again. - Reduced motion: the indeterminate bar stands still as a full, lighter bar, and the spinner slows to one turn every 2.4 s, so it still shows that work is going on.
Do and don’t
Do
Say what is loading: "Loading files", not "Loading".
Switch to the determinate bar as soon as you know the share.
Don’t
Show more than one spinner on a screen.
Leave a spinner turning after an error: replace it with the message.
What you provide
- The label, the value from 0 to 100 (or none when unknown), and the spinner size.