Installation
- CLI
- Manual
Usage
Examples
With Label
Add a descriptive label to the progress bar.With Value Display
Show the current progress value.Custom Composition
Build custom progress layouts using sub-components.Indeterminate State
Omit thevalue prop for indeterminate progress.
Min and Max Values
Define custom value ranges.API Reference
Progress
Based on Base UI Progress component.Current progress value. Omit for indeterminate state.
Minimum value.
Maximum value.
Function to format the value label.
Additional CSS classes.
Progress.Track
The track container for the progress indicator.Additional CSS classes.
Progress.Indicator
The visual indicator showing progress.Additional CSS classes.
Progress.Label
Descriptive label for the progress bar.Additional CSS classes.
Progress.Value
Displays the current progress value.Additional CSS classes.
Accessibility
- Uses
role="progressbar"for proper semantics - Announces current value to screen readers
aria-valuemin,aria-valuemax, andaria-valuenoware set automaticallyaria-valuetextcan be customized withgetValueLabel- Indeterminate state is properly announced
Best Practices
- Use determinate progress when you know the total
- Use indeterminate progress for unknown durations
- Always provide a descriptive label
- Show percentage for user-uploaded content
- Update progress smoothly to avoid jarring jumps
- Consider showing estimated time remaining for long operations