Progress Bar
ProgressBar Props
| Name | Type | Default | Description |
|---|---|---|---|
value | number | — | Required. Current value. |
min | number | 0 | Minimum value. |
max | number | 100 | Maximum value. |
size | 'sm' | 'md' | 'lg' | 'md' | Track height. |
variant | 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | Fill color. |
label | string | — | Progress bar label. Used as the accessible name. |
description | string | — | Supplementary description. |
isIndeterminate | boolean | false | Indeterminate state. Shows a looping animation and removes aria-valuenow. |
showValue | boolean | false | Show the percentage next to the label. |
valueText | string | — | Custom aria-valuetext and display text. Overrides the default percentage. |
width | number | 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.