Skip to content
On this page

ProgressBar

A linear indicator of progress.

Currently only supports indeterminate type (i.e. the bar will scroll across the width of the display and then reappear at the start, rather than reflecting a specific amount of progress having been made).

A smaller, inline version is available for use within other components, e.g. a menu or dialog.

Demos

Configurable

NameValue
Props
inline
aria-label
disabled
View
Reading direction

Default

Default indeterminate progress bar.

WARNING

Due to the lack of descriptive text, default progress bars require one of the following attributes: aria-label or aria-hidden.

The attribute aria-label has to be used on progress bars to be understandable by assistive technology users. Exceptions are inline progress bars in component combinations, e.g. in the Menu component, that are skipped by adding aria-hidden.

Inline

An inline version is available for use within other components. See Menu for sample usage.

Usage

Props

Prop nameDescriptionTypeDefault
inlineWhether this is the smaller, inline variant.booleanfalse
disabledWhether the progress bar is disabled.booleanfalse

CSS-only version

Markup structure

Inline

For an inline progress bar, add the cdx-progress-bar--inline class to the root <div>.

Disabled

For a disabled progress bar, add the cdx-progress-bar--disabled class to the root <div>.