Progress

Displays the status of a task that takes a long time.

API reference

Import the component and place its parts the following way:

Anatomy
import { Progress } from '@base-ui-components/react/progress';

<Progress.Root>
  <Progress.Track>
    <Progress.Indicator />
  </Progress.Track>
</Progress.Root>

Root

Groups all parts of the progress bar and provides the task completion status to screen readers. Renders a <div> element.

PropTypeDefault
aria-labelstringundefined
aria-labelledbystringundefined
aria-valuetextstringundefined
classNamestring | (state) => stringundefined
getAriaLabel(value) => stringundefined
getAriaValueText(value) => stringundefined
maxnumber100
minnumber0
render| React.ReactElement
| (props, state) => React.ReactElement
undefined
valuenumbernull
Attribute
Description
data-complete
data-indeterminate
data-progressing

Track

Contains the progress bar indicator. Renders a <span> element.

PropTypeDefault
classNamestring | (state) => stringundefined
render| React.ReactElement
| (props, state) => React.ReactElement
undefined
Attribute
Description
data-complete
data-indeterminate
data-progressing

Indicator

Visualizes the completion status of the task. Renders a <span> element.

PropTypeDefault
classNamestring | (state) => stringundefined
render| React.ReactElement
| (props, state) => React.ReactElement
undefined
Attribute
Description
data-complete
data-indeterminate
data-progressing