Skip to main content

ProgressBar

Used to show users the status of loading an app, ongoing processes, saving changes/updates, and more.

Submit feedback
github
import { ProgressBar } from '@uhg-abyss/mobile';
<ProgressBar steps={5} currentStep={2} />

useState

In this example, we use the steps prop to define the number of steps available. React's useState hook is used to update the currentStep prop.

ProgressBar Props

Prop NameTypeDefaultDescription
currentStepnumber-Sets current step
stepsnumber-Sets number of steps

ProgressBar Classes

Class NameDescription
abyss-progress-bar-rootProgress bar root element
abyss-progress-bar-slideProgress bar slide

ProgressBar Translations

Translation KeyValue
ProgressBar.textValueyou are currently on step {{currentStep}} out of {{steps}}
ProgressBar.progressBarProgress bar

ProgressBar Tokens

Token NameValue
progress-bar.color.surface.container
#F0F9ED
progress-bar.color.surface.track
#1EA21C
progress-bar.sizing.height.track
6
Table of Contents