Progress
stableDisplays an indicator showing the completion progress of a task.
Basic usage
Examples
Indeterminate
Pass null or undefined as value to render an indeterminate progress bar.
Loading…
Determinate and indeterminate
Use value for known progress, or null for pending work without a measured value.
Semantic colors
Color prop applies semantic tints to the progress bar fill.
Features
- Smooth animated fill.
- Supports indeterminate state.
Installation
bash
pnpm dlx structyl add progressAPI Reference
Progress
A linear progress bar. Has role="progressbar".
| Prop | Type | Default |
|---|---|---|
| value | number | nullCurrent value (0–max). Pass null for indeterminate. | — |
| max | numberMaximum value. | 100 |
| getValueLabel | (value, max) => stringReturns the localized aria-valuetext label. | — |
| className | stringAdditional Tailwind classes, merged with the component defaults. | — |