Progress
Shows how much of a task is done with a horizontal bar, such as a file upload or a processing run.
indicatorColor
<Progress />When to use
- To show the completed share of a task whose progress is known: an upload, a batch of documents, a form’s completion.
- Together with a visible label or percentage.
When not to use
- Work with no known duration. Use Loader.
- A state with a name, such as “Processando”. Use Status badge.
- A message about the result. Use Alert.
- Placeholder for content that is loading. Use Skeleton.
Colors
When no indicatorColor is passed, the fill is brand, or primary when isAdmin is set. Pick another color only when it carries meaning, and say the meaning in text.
brand (default)
primary (isAdmin)
completion
green
lightGreen
orange
red
yellow
| Color | Use for |
|---|---|
brand |
Default. Neutral progress. |
primary |
Neutral fill for back-office screens (isAdmin). |
green |
A positive result. |
lightGreen |
A positive result that is not final. |
yellow |
Attention, such as close to a limit. |
orange |
Warning. |
red |
Problem or limit reached. |
completion |
Blends red to green as the value grows. |
Examples
completion fits a measure of how complete something is. Show the percentage.
0%
25%
50%
75%
100%
Show what is progressing and how far.
peticao-inicial.pdf72%
Content
- Name the object next to the bar: “peticao-inicial.pdf”.
- Show the percentage as text.
- Do not use a bar for under one second of work.
Accessibility
- It is built on Radix Progress: the root has
role="progressbar"witharia-valuenow,aria-valuemin="0"andaria-valuemax="100". - Radix does not add a name. Pass
aria-labeloraria-labelledby, or the bar reads as an unnamed progress bar. - Colors are never the only signal. Green, yellow, orange and red must come with text, for example the percentage and a state word.
- Not focusable and not interactive.
- The fill animates
transformwithmotion-reduce:transition-none, so it respects reduced motion. - The bar is 8px tall. It is a display, not a control.
Code
import { Progress } from "@repo/ui/progress";
<Progress aria-label="Envio de peticao-inicial.pdf" value={72} />
<Progress
aria-label="Preenchimento do cadastro"
indicatorColor="completion"
value={40}
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
indicatorColor | "completion" | "green" | "lightGreen" | "orange" | "red" | "yellow" | — | Fill color. Without it the fill is `brand`, or `primary` when `isAdmin` is set. `completion` blends from red to green as the value grows |
isAdmin | boolean | false | Uses the neutral `primary` fill instead of `brand` |
value | unknown | — | Completed percentage, from 0 to 100 |
Known issues
| Issue | Effect |
|---|---|
| No accessible name is set by default. | Screen readers hear “progress bar” with a number and no subject unless the caller passes aria-label. |
completion computes an inline hsl(…) color from hardcoded stops. |
It does not follow the semantic tokens or the Light, Dark and Darker themes. |
The fill width uses 100 - value and ignores the max prop. |
A max other than 100 gives a bar that does not match aria-valuenow and aria-valuemax. |
A missing value renders an empty bar. |
Radix marks it as indeterminate, but the fill has no indeterminate style: it looks like 0%. |
isAdmin is an app-specific prop on a shared component. |
A back-office concern leaks into the design system API. indicatorColor="primary" would be a plain option. |
The component uses forwardRef. |
Code only: React 19 accepts ref as a prop. |