Progress Bar
Alignment target:@astryxdesign/core v0.7.1 · ProgressBar
<ProgressBar
label="Uploading"
:value="42"
variant="accent"
size="md"
/>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 | 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info' | 'accent' | 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 omits aria-valuenow, aria-valuemin, aria-valuemax, and aria-valuetext. |
isDisabled | boolean | false | Disabled look: the fill, label, value and marks all drop to the muted colors. Use it for canceled or inactive work. |
showValue | boolean | false | Show the percentage next to the label. |
valueText | string | — | 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. |
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.