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.

PropertyDescriptionDefault Value
--rpf-progress-bar-background-colorBackground color of the progress barvar(--rpf-grey-150)
--rpf-progress-bar-accent-colorColor of the filled progress segmentvar(--rpf-navy-800)
--rpf-progress-bar-block-sizeBlock size (height) of the progress barvar(--space-1)
--rpf-progress-bar-border-radiusBorder radius of the progress barvar(--space-1)
--rpf-progress-bar-gapSpacing between progress bar and labelvar(--space-3)
--rpf-progress-bar-font-sizeFont size for progress labelsvar(--font-size-1)
--rpf-progress-bar-font-weightFont weight for progress labelsvar(--font-weight-regular)
--rpf-progress-bar-complete-colorColor indicator for completed statusvar(--rpf-alert-success)
--rpf-progress-bar-complete-iconIcon displayed when progress is completeSVG checkmark in circle
--color-progress-bar-complete⚠️ Deprecated - Color for completed segmentsvar(--rpf-navy-800)
--color-progress-bar-incomplete⚠️ Deprecated - Color for incomplete segmentsvar(--rpf-grey-150)

Variants

Completed

A completed state is available, but is not required.

Customising

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

Implementation: