Progress
Displays an indicator showing the completion progress of a task.
Example Usage
astro
<Progress value={60} /> With Value Text
You can display the percentage text by setting the showValue prop.
astro
<Progress value={45} showValue /> Variants
Use the variant prop to convey different semantic meanings.
Sizes
Animations & Labels
Use the animation prop for continuous feedback, and configure
label alongside labelPosition to provide better context.
Downloading Data... 85%
Downloading Data... 85%
API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| value | The current value of the progress bar. | number | 0 |
| max | The maximum value of the progress bar. | number | 100 |
| size | The size of the progress bar (sm, md, lg, xl). | 'sm' | 'md' | 'lg' | 'xl' | 'md' |
| shape | The shape of the progress bar (rounded, pill, square). | 'rounded' | 'pill' | 'square' | 'pill' |
| variant | Semantic style variant (default, success, warning, error). | 'default' | 'success' | 'warning' | 'error' | 'default' |
| animation | Animation style (none, snake, infinite). | 'none' | 'snake' | 'infinite' | 'none' |
| showValue | Whether to display the numerical percentage value. | boolean | false |
| label | Text label to display alongside the progress bar. | string | - |
| labelPosition | Position of the label and value (top, right). | 'top' | 'right' | 'right' |