Component
The Progress component visually represents the completion status of a task or process, such as uploading a file, loading content, or completing form steps.
View component changelog- Displays completion status visually as a horizontal bar
- Supports minimum and maximum value configuration
- Customizable color themes
- Smooth animations for value changes
Root component for the Progress component.
| Prop | Type | Default |
|---|---|---|
value | number | null | 0 |
minValue | number | 0 |
maxValue | number | 100 |
customRootClass | string | '' |
children | ReactNode | -- |
getValueLabel | function | -- |
format | Intl.NumberFormatOptions | -- |
locale | string | browser locale |
A visible name; the root is labelled by it.
| Prop | Type | Default |
|---|---|---|
children | ReactNode | -- |
The current value as visible text: getValueLabel, then format, otherwise a rounded percentage. Hidden from screen readers, which hear the value from the root.
| Prop | Type | Default |
|---|---|---|
children | (formatted, value) => ReactNode | -- |
The bar behind the Indicator. Optional; use it to place Label and Value beside the bar.
| Prop | Type | Default |
|---|---|---|
className | string | -- |
Indicator component for the Progress component.
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
className | string | -- |
style | CSSProperties | -- |
| Shortcut | Description |
|---|---|
Tab | Moves focus to interactive controls associated with the progress indicator. |
| Reference | What Rad UI follows |
|---|---|
Uses progressbar semantics with aria-valuenow for determinate progress. aria-valuemin and aria-valuemax are optional for the default 0 to 100 range, aria-valuetext is only needed when the numeric value is not meaningful on its own, and indeterminate progress omits aria-valuenow. |