Skip to content

Progress Bar

ProgressBar Props ​

NameTypeDefaultDescription
valuenumber—Required. Current value.
minnumber0Minimum value.
maxnumber100Maximum value.
size'sm' | 'md' | 'lg''md'Track height.
variant'neutral' | 'success' | 'warning' | 'error' | 'info''neutral'Fill color.
labelstring—Progress bar label. Used as the accessible name.
descriptionstring—Supplementary description.
isIndeterminatebooleanfalseIndeterminate state. Shows a looping animation and removes aria-valuenow.
showValuebooleanfalseShow the percentage next to the label.
valueTextstring—Custom aria-valuetext and display text. Overrides the default percentage.
widthnumber | string—Component width. Numbers are treated as px.

Theme ​

css
.my-progress-bar {
  --astryx-progress-bar-track-background: #e5e5e5;
  --astryx-progress-bar-fill-background: #171717;
}
  • --astryx-progress-bar-track-background: track background.
  • --astryx-progress-bar-fill-background: default fill color.
  • --astryx-progress-bar-track-height: default track height.
  • --astryx-progress-bar-track-height-sm: sm track height.
  • --astryx-progress-bar-track-height-lg: lg track height.