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
| Eigenschaft | Beschreibung | Typ | Standard |
|---|---|---|---|
| value | Der aktuelle Wert des Fortschrittsbalkens. | number | 0 |
| max | Der Maximalwert des Fortschrittsbalkens. | number | 100 |
| size | Die Größe des Fortschrittsbalkens (sm, md, lg, xl). | 'sm' | 'md' | 'lg' | 'xl' | 'md' |
| shape | Die Form des Fortschrittsbalkens (rounded, pill, square). | 'rounded' | 'pill' | 'square' | 'pill' |
| variant | Semantische Stilvariante (default, success, warning, error). | 'default' | 'success' | 'warning' | 'error' | 'default' |
| animation | Animationsstil (none, snake, infinite). | 'none' | 'snake' | 'infinite' | 'none' |
| showValue | Gibt an, ob der numerische Prozentwert angezeigt werden soll. | boolean | false |
| label | Textlabel, das neben dem Fortschrittsbalken angezeigt wird. | string | - |
| labelPosition | Position des Labels und des Werts (top, right). | 'top' | 'right' | 'right' |