Progress
Displays the status of a task that takes a long time.
Anatomy
Import the component and assemble its parts:
import { Progress } from '@base-ui-components/react/progress';
<Progress.Root>
<Progress.Label />
<Progress.Track>
<Progress.Indicator />
</Progress.Track>
<Progress.Value />
</Progress.Root>API reference
Root
Groups all parts of the progress bar and provides the task completion status to screen readers.
Renders a <div> element.
| Prop | Type | Default | |
|---|---|---|---|
value* |
|
| |
getAriaValueText |
|
| |
locale |
|
| |
min |
|
| |
max |
|
| |
format |
|
| |
className |
|
| |
render |
|
|
| Attribute | Description | |
|---|---|---|
data-complete | Present when the progress has completed. | |
data-indeterminate | Present when the progress is in interminate state. | |
data-progressing | Present while the progress is progressing. | |
Track
Contains the progress bar indicator.
Renders a <div> element.
| Prop | Type | Default | |
|---|---|---|---|
className |
|
| |
render |
|
|
| Attribute | Description | |
|---|---|---|
data-complete | Present when the progress has completed. | |
data-indeterminate | Present when the progress is in interminate state. | |
data-progressing | Present while the progress is progressing. | |
Indicator
Visualizes the completion status of the task.
Renders a <div> element.
| Prop | Type | Default | |
|---|---|---|---|
className |
|
| |
render |
|
|
| Attribute | Description | |
|---|---|---|
data-complete | Present when the progress has completed. | |
data-indeterminate | Present when the progress is in interminate state. | |
data-progressing | Present while the progress is progressing. | |
Value
A text label displaying the current value.
Renders a <span> element.
| Prop | Type | Default | |
|---|---|---|---|
children |
|
| |
className |
|
| |
render |
|
|
| Attribute | Description | |
|---|---|---|
data-complete | Present when the progress has completed. | |
data-indeterminate | Present when the progress is in interminate state. | |
data-progressing | Present while the progress is progressing. | |
Label
An accessible label for the progress bar.
Renders a <span> element.
| Prop | Type | Default | |
|---|---|---|---|
className |
|
| |
render |
|
|
| Attribute | Description | |
|---|---|---|
data-complete | Present when the progress has completed. | |
data-indeterminate | Present when the progress is in interminate state. | |
data-progressing | Present while the progress is progressing. | |