Progress bar
The progress bar is a visual element that provides information about the status of a submission or collecting process. For example, progress bars can be used to display how much time is left for a task to be completed or how much data is left to process, to inform the user how long they will have to wait.
- Storybook (opens in a new tab)
- Figma library (opens in a new tab)
- Figma spec (opens in a new tab)
npm install @sbks/ds-elements
Dimensions and spacing
Section titled “Dimensions and spacing”The dashed target marker overhangs the track on both edges.
| Part | Property | Token |
|---|---|---|
| Track | Height | 6px |
| Track | Minimum width | 180px |
| Track | Corner radius | --border-radius-small |
| Target marker | Height | 14px |
| Target marker | Width | 1px |
| Target marker | Offset from the top of the track | -4px |
| Stripe | Thickness | 1px |
Colors
Section titled “Colors”The striped track shows the part of the value over the expected maximum.
| Part | Property | Token |
|---|---|---|
| Label, legend and error message | Text | --color-on-layer-secondary |
| Legend | Text in the error variant | --color-on-layer-danger |
| Track | Unreached part in the error and success variants | --color-border-primary |
| Primary segment | Success variant | --color-border-success-emphasis |
| Primary segment | Error variant | --color-border-danger-emphasis |
| Secondary segment | Fill | --color-border-info-emphasis |
| Overload segment | Fill | --color-border-warning-emphasis |
| Stripes | Stripe and target marker dashes | --color-border-danger-emphasis |
| Stripes | Gaps between stripes | --color-border-warning-emphasis |