Skip to main content

ProgressBar

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

github
View source code
import { ProgressBar } from '@uhg-abyss/mobile';
() => {
return <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​

NameTypeDefaultRequiredDescription
currentStep
number
-
Sets current step
steps
number
-
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