Skip to main content

Progress Bar

Introduction

A progress bar visually illustrates how far through a task a user is.

Live demo

CSS custom properties

These properties can be used to customise the component. See Theming for how to apply custom properties.

PropertyTypeDefault valueFallback valueDescription
--rpf-progress-bar-background-colorIndependentvar(--color-progress-bar-incomplete)Progress bar background colour
--rpf-progress-bar-accent-colorIndependentvar(--color-progress-bar-complete)Filled progress segment colour
--rpf-progress-bar-block-sizeIndependentvar(--space-1)Progress bar block size (height)
--rpf-progress-bar-border-radiusIndependentvar(--space-1)Progress bar border radius
--rpf-progress-bar-gapIndependentvar(--space-3)Space between the progress bar and label
--rpf-progress-bar-font-sizeIndependentvar(--font-size-1)Progress label font size
--rpf-progress-bar-font-weightIndependentvar(--font-weight-regular)Progress label font weight
--rpf-progress-bar-complete-colorIndependentvar(--rpf-alert-success)Completed-state indicator colour
--rpf-progress-bar-complete-iconIndependentSVG checkmark in circleIcon displayed when progress is complete
--color-progress-bar-completeIndependentvar(--rpf-navy-800)Deprecated: filled progress segment colour
--color-progress-bar-incompleteIndependentvar(--rpf-grey-150)Deprecated: progress bar background colour

Variants

Completed

A completed state is available, but is not required.

Customising

With the CSS custom properties the progress bar can be customised.

Implementation: