Skip to main content

Progress Bar

A token-driven, animated horizontal progress indicator. Takes a value between 0 and 1 (values outside this range are clamped).

Basic usage

<ProgressBar value={0.25} />
<ProgressBar value={0.5} />
<ProgressBar value={0.9} />

Custom colors & height

<ProgressBar value={0.6} height={4} trackColor="surfaceRaised" fillColor="success" />
<ProgressBar value={0.4} height={12} trackColor="surfaceRaised" fillColor="warning" rounded="r-2" />

Props

PropTypeDefaultDescription
valuenumberRequired. Progress from 0 to 1, clamped if out of range.
heightnumber8Track height in pixels.
trackColorTVajraColors'surfaceRaised'Background track color.
fillColorTVajraColors'primary'Fill color.
roundedTRoundedToken'r-full'Corner radius token.
animatedbooleantrueAnimate width changes when value changes.
testIDstringTest identifier.