Progress
A bar or circle that shows how far a task has run.
Usage guidelines
- Use Progress for task completion: Progress shows how far a running task, such as an upload, an import or an indexing run, has moved toward done. A value that sits in a range and can rise or fall at any time, such as quota usage, storage or a score, uses
Meter. Both draw the same bar, but assistive technology announces them asprogressbarandmeter, so choose by meaning, not by look. - Pass
nullwhile the amount is unknown: Anullvalue makes the progress indeterminate. The bar hides its indicator,aria-valuenowis removed, and Base UI falls back to the English value text "indeterminate progress"; pass a localizedgetAriaValueTextin other locales. UseSpinnerinstead when no track needs to show. - Name the progress: Use
ProgressLabelfor a visible label; it names the root.ProgressCirclehas no label part, so it requiresaria-labeloraria-labelledby. - Describe the value in task terms: Set
maxto the real total andgetAriaValueTextwhen a percentage alone does not say what is counted.ProgressValuetakes a render function for the same visible text. - Keep completion announcements with the feature: Progress exposes the current value on request. Announcing that a task finished or failed belongs to the feature's status owner.
Anatomy
The linear parts style Base UI Progress and leave the layout of the label and value to the caller. ProgressCircle is a single part that draws a pie from the value.
Examples
Indeterminate
With value={null} the track stays empty until the task can report an amount. Keep ProgressIndicator inside ProgressTrack so it hides automatically while indeterminate and appears once a number arrives. The indeterminate bar does not animate, so this example adds a decorative SpinnerIcon to show the task is running.
Updating value
The indicator width follows value with a transition that is removed for reduced motion. Here max is the segment count, and the value text counts segments instead of a percentage. The button uses loading so it keeps focus while the run is in progress.
Circle
ProgressCircle fits rows and dense lists. color takes blue (the default), gray, warning, error or white (for dark or accent surfaces). A null value draws an empty circle.
- pricing-faq.mdEmbedding
- release-notes.pdfQueued
- contracts-2025.zipRetrying
- scan-0042.pngFailed
Circle sizes
small (the default), medium and large render 12, 16 and 20 pixels.
API reference
Progress
Groups all parts of a linear progress bar and exposes task completion status to assistive technology. Renders a <div> element.
Use Meter instead for a numeric value within a known range rather than task completion.
| Prop | Type | Default | Details |
|---|---|---|---|
className | string | ((state: ProgressRootState) => string | undefined) | No default | |
aria-valuetext | string | No default | |
format | Intl.NumberFormatOptions | No default | |
getAriaValueText | ((formattedValue: string, value: number | null) => string) | No default | |
locale | Intl.LocalesArgument | No default | |
max | number | 100 | |
min | number | 0 | |
value required | number | null | No default | |
render | ComponentRenderFn<HTMLProps, ProgressRootState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressRootState) => React.CSSProperties | undefined) | No default | |
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |
ProgressCircle
Displays task completion as a circular pie indicator; requires aria-label or aria-labelledby. Renders a <div> element.
| Prop | Type | Default | Details |
|---|---|---|---|
aria-label | string | No default | |
aria-labelledby | string | No default | |
color | 'blue' | 'error' | 'gray' | 'warning' | 'white' | 'blue' | |
size | 'large' | 'medium' | 'small' | 'small' | |
circleStrokeWidth | number | 1 | |
className | string | ((state: ProgressRootState) => string | undefined) | No default | |
render | ComponentRenderFn<HTMLProps, ProgressRootState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressRootState) => React.CSSProperties | undefined) | No default | |
aria-valuetext | string | No default | |
format | Intl.NumberFormatOptions | No default | |
getAriaValueText | ((formattedValue: string, value: number | null) => string) | No default | |
locale | Intl.LocalesArgument | No default | |
max | number | 100 | |
min | number | 0 | |
value required | number | null | No default | |
Valid prop combinations:
aria-label: string,aria-labelledby?: undefinedaria-label?: undefined,aria-labelledby: string
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |
ProgressIndicator
Visualizes the completion status of the task. Renders a <div> element.
| Prop | Type | Default | Details |
|---|---|---|---|
className | string | ((state: ProgressIndicatorState) => string | undefined) | No default | |
render | ComponentRenderFn<HTMLProps, ProgressIndicatorState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressIndicatorState) => React.CSSProperties | undefined) | No default | |
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |
ProgressLabel
An accessible label for the progress bar. Renders a <span> element.
| Prop | Type | Default | Details |
|---|---|---|---|
className | string | ((state: ProgressLabelState) => string | undefined) | No default | |
render | ComponentRenderFn<HTMLProps, ProgressLabelState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressLabelState) => React.CSSProperties | undefined) | No default | |
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |
ProgressTrack
Contains the progress bar indicator. Renders a <div> element.
| Prop | Type | Default | Details |
|---|---|---|---|
className | string | ((state: ProgressTrackState) => string | undefined) | No default | |
render | ComponentRenderFn<HTMLProps, ProgressTrackState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressTrackState) => React.CSSProperties | undefined) | No default | |
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |
ProgressValue
A text element displaying the current value. Renders a <span> element.
| Prop | Type | Default | Details |
|---|---|---|---|
children | ((formattedValue: string | null, value: number | null) => React.ReactNode) | null | No default | |
className | string | ((state: ProgressValueState) => string | undefined) | No default | |
render | ComponentRenderFn<HTMLProps, ProgressValueState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | No default | |
style | React.CSSProperties | ((state: ProgressValueState) => React.CSSProperties | undefined) | No default | |
| Attribute | Description |
|---|---|
data-complete | Present when the progress has completed. |
data-indeterminate | Present when the progress is in indeterminate state. |
data-progressing | Present while the progress is progressing. |