<progress> element to show progress of ongoing operations.
Basic Usage
Attributes
value
The current progress value:max
The maximum value (defaults to 1 if not specified):Indeterminate State
Omit thevalue attribute to show an indeterminate/loading state:
Dynamic Progress
Update progress dynamically with JavaScript:Styling
Progress bars include:- Full width by default
- Customizable height via
--bar-heightCSS variable - Rounded corners (pill shape)
- Primary color fill
- Muted background
- Smooth transitions
Custom Height
Custom Width
Use Cases
- File uploads - Show upload progress
- Form completion - Indicate how much of a form is filled
- Loading states - Display loading progress for known durations
- Goal tracking - Show progress toward a goal
Accessibility
The<progress> element is automatically accessible with:
- Proper ARIA role
- Screen reader announcements of value changes
- Semantic HTML meaning
For static measurements within a known range, use the Meter component instead.