Progress

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

Export data

API reference

Import the component and assemble its parts:

Anatomy

Root

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

PropTypeDefault
value

number | null

null

getAriaValueText

((formattedValue: string | null, value: number | null) => string)

undefined

locale

LocalesArgument

undefined

min

number

0

max

number

100

format

NumberFormatOptions

undefined

className

string | ((state: State) => string)

undefined

render

| ReactElement
| ((props: GenericHTMLProps, state: State) => ReactElement)

undefined

Attribute
Description
data-complete
data-indeterminate
data-progressing

Track

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

PropTypeDefault
className

string | ((state: State) => string)

undefined

render

| ReactElement
| ((props: GenericHTMLProps, state: State) => ReactElement)

undefined

Attribute
Description
data-complete
data-indeterminate
data-progressing

Indicator

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

PropTypeDefault
className

string | ((state: State) => string)

undefined

render

| ReactElement
| ((props: GenericHTMLProps, state: State) => ReactElement)

undefined

Attribute
Description
data-complete
data-indeterminate
data-progressing

Value

A text label displaying the current value. Renders a <span> element.

PropTypeDefault
children

| ((formattedValue: string | null, value: number | null) => ReactNode)
| null

undefined

className

string | ((state: State) => string)

undefined

render

| ReactElement
| ((props: GenericHTMLProps, state: State) => ReactElement)

undefined

Attribute
Description
data-complete
data-indeterminate
data-progressing

Label

An accessible label for the progress bar. Renders a <span> element.

PropTypeDefault
className

string | ((state: State) => string)

undefined

render

| ReactElement
| ((props: GenericHTMLProps, state: State) => ReactElement)

undefined

Attribute
Description
data-complete
data-indeterminate
data-progressing