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
| Propiedad | Descripción | Tipo | Por defecto |
|---|---|---|---|
| value | El valor actual de la barra de progreso. | number | 0 |
| max | El valor máximo de la barra de progreso. | number | 100 |
| size | El tamaño de la barra de progreso (sm, md, lg, xl). | 'sm' | 'md' | 'lg' | 'xl' | 'md' |
| shape | La forma de la barra de progreso (rounded, pill, square). | 'rounded' | 'pill' | 'square' | 'pill' |
| variant | Variante de estilo semántico (default, success, warning, error). | 'default' | 'success' | 'warning' | 'error' | 'default' |
| animation | Estilo de animación (none, snake, infinite). | 'none' | 'snake' | 'infinite' | 'none' |
| showValue | Indica si se debe mostrar el valor porcentual numérico. | boolean | false |
| label | Etiqueta de texto para mostrar junto a la barra de progreso. | string | - |
| labelPosition | Posición de la etiqueta y el valor (top, right). | 'top' | 'right' | 'right' |