ProgressBar

Indicates a wait time for deterministic actions- either within an experience flow or loading data.

Accessibility

  • ProgressBar has a role="progressbar" and aria-valuenow={number} set.

Progress bar Basic Usage

Progress bar with Negative Color

Progress bar with Visible Label

0% Loaded

Progress bar with Custom Label

0mb out of 100mb downloaded

Progress bar with Alternate Success Value

Progress bar with Overrides

Overrides

Additionally, you can fully customize any part of the ProgressBar through the overrides prop. The ProgressBar consists of multiple subcomponents that are listed bellow and you can override each one of them. To help you identify the names of these subcomponents, you can highlight them through this selector:

60% Loaded

Note: You should always use longhand CSS properties. Mixing shorthands and longhands will lead into strange behaviors!

ProgressBar API

Warning any = "Prop types are not shown in dev mode"

extract-react-types is not being run in dev mode for speed reasons. If you need to see prop types add the environment variable FORCE_EXTRACT_REACT_TYPES eg:

  • FORCE_EXTRACT_REACT_TYPES=true yarn start <packageName>
  • FORCE_EXTRACT_REACT_TYPES=true yarn start:<team>