Progress Bar

Alignment target:@astryxdesign/core v0.7.1 · ProgressBar

Uploading
<ProgressBar
  label="Uploading"
  :value="42"
  variant="accent"
  size="md"
/>

ProgressBar Props #

NameTypeDefaultDescription
valuenumber—Required. Current value.
minnumber0Minimum value.
maxnumber100Maximum value.
size'sm' | 'md' | 'lg''md'Track height.
variant'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info''accent'Fill color.
labelstring—Progress bar label. Used as the accessible name.
descriptionstring—Supplementary description.
isIndeterminatebooleanfalseIndeterminate state. Shows a looping animation and omits aria-valuenow, aria-valuemin, aria-valuemax, and aria-valuetext.
isDisabledbooleanfalseDisabled look: the fill, label, value and marks all drop to the muted colors. Use it for canceled or inactive work.
showValuebooleanfalseShow the percentage next to the label.
valueTextstring—Custom aria-valuetext and display text. Overrides the default percentage.
marks{ value: number, label: string }[]—Target ticks on the track. Hidden while indeterminate. label is the accessible name and the hover or focus tooltip.
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.