Skip to content

Progress

A bar or circle that shows how far a task has run.

Uploading product-handbook.pdf
x
hero.tsx

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 as progressbar and meter, so choose by meaning, not by look.
  • Pass null while the amount is unknown: A null value makes the progress indeterminate. The bar hides its indicator, aria-valuenow is removed, and Base UI falls back to the English value text "indeterminate progress"; pass a localized getAriaValueText in other locales. Use Spinner instead when no track needs to show.
  • Name the progress: Use ProgressLabel for a visible label; it names the root. ProgressCircle has no label part, so it requires aria-label or aria-labelledby.
  • Describe the value in task terms: Set max to the real total and getAriaValueText when a percentage alone does not say what is counted. ProgressValue takes 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

tsx
tsx

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.

Preparing log export
x
indeterminate.tsx

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.

Indexing segments
x
live.tsx

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.

  • x
    pricing-faq.mdEmbedding
  • x
    release-notes.pdfQueued
  • x
    contracts-2025.zipRetrying
  • x
    scan-0042.pngFailed
circle.tsx

Circle sizes

small (the default), medium and large render 12, 16 and 20 pixels.

x
small · 12px
x
medium · 16px
x
large · 20px
circle-sizes.tsx

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.

Base UI Progress.Root docs

Data attributes
AttributeDescription
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.

Base UI Progress.Root docs

Props
PropTypeDefaultDetails
aria-labelstringNo default
aria-labelledbystringNo default
color'blue' | 'error' | 'gray' | 'warning' | 'white''blue'
size'large' | 'medium' | 'small''small'
circleStrokeWidthnumber1
Base UI Progress.Root docs

Valid prop combinations:

  • aria-label: string, aria-labelledby?: undefined
  • aria-label?: undefined, aria-labelledby: string
Data attributes
AttributeDescription
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.

Base UI Progress.Indicator docs

Data attributes
AttributeDescription
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.

Base UI Progress.Label docs

Data attributes
AttributeDescription
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.

Base UI Progress.Track docs

Data attributes
AttributeDescription
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.

Base UI Progress.Value docs

Data attributes
AttributeDescription
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.