Figma
Component Status
Status
HTML
React
Design Usage
ProgressBar shows how far an ongoing task or process has progressed toward completion. It can be used as a standalone progress indicator with an accessible name, or as a form-like element with a visible Label, value information, HelperText, and validation feedback. It can also be composed inside File to communicate the progress of an individual file upload. The component is based on the native HTML <progress> element.
When to Use
Use ProgressBar when:
- Progress toward a known completion point can be measured.
- Users benefit from understanding how much of a process has been completed.
- Displaying progress of an individual file upload.
- Communicating completion of a task, profile, or other measurable process.
When Not to Use
Do not use ProgressBar:
- When progress cannot be meaningfully measured.
- As a generic loading indicator for an unknown duration; use Spinner instead.
- To communicate a static value that does not represent progress toward completion.
Best Practices
- Always provide a value. ProgressBar does not support an indeterminate state because the browser's native <progress> animation cannot be styled consistently.
- Give ProgressBar an accessible name. Use a visible label, or provide aria-label when a visible label is not needed.
- Show a value label beside or below the bar when the numeric progress helps users. If the visible value needs more context for screen readers than the native numeric value provides, supply accessible value text.
- Keep the meaning clear with a visible label or surrounding context. Use HelperText for static supplementary information and ValidationText for validation or status feedback.
- Use color to reinforce context, not as the sole way to communicate success, warning, or error; provide appropriate text for those states.
- Keep updates smooth and predictable. Progress changes are animated and throttled, and the animation respects the user's reduced-motion preference.
- When ProgressBar is used inside File, show progress for the individual file represented by that component.