Progress
Displays the status of a task that takes a long time.
View as MarkdownAnatomy
Import the component and assemble its parts:
API reference
Root
Groups all parts of the progress bar and provides the task completion status to screen readers.
Renders a <div> element.
value*—
- Name
- Description
The current value. The component is indeterminate when value is
null.- Type
- Default
null
aria-valuetextstring—
- Name
- Description
A string value that provides a user-friendly name for
aria-valuenow, the current value of the meter.- Type
getAriaValueTextfunction—
- Name
- Description
Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar.
- Type
localeIntl.LocalesArgument—
- Name
- Description
The locale used by
Intl.NumberFormatwhen formatting the value. Defaults to the user’s runtime locale.- Type
minnumber0
- Name
- Description
The minimum value.
- Type
- Default
0
maxnumber100
- Name
- Description
The maximum value.
- Type
- Default
100
formatIntl.NumberFormatOptions—
- Name
- Description
Options to format the value.
- Type
classNamestring | function—
- Name
- Description
CSS class applied to the element, or a function that returns a class based on the component’s state.
- Type
styleReact.CSSProperties | function—
- Name
- Description
Style applied to the element, or a function that returns a style object based on the component’s state.
- Type
renderReactElement | function—
- Name
- Description
Allows you to replace the component’s HTML element with a different tag, or compose it with another component.
Accepts a
ReactElementor a function that returns the element to render.- Type
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.
| 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. | |
Progress.Root.StateHide
Track
Contains the progress bar indicator.
Renders a <div> element.
classNamestring | function—
- Name
- Description
CSS class applied to the element, or a function that returns a class based on the component’s state.
- Type
styleReact.CSSProperties | function—
- Name
- Description
Style applied to the element, or a function that returns a style object based on the component’s state.
- Type
renderReactElement | function—
- Name
- Description
Allows you to replace the component’s HTML element with a different tag, or compose it with another component.
Accepts a
ReactElementor a function that returns the element to render.- Type
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.
| 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. | |
Progress.Track.StateHide
Indicator
Visualizes the completion status of the task.
Renders a <div> element.
classNamestring | function—
- Name
- Description
CSS class applied to the element, or a function that returns a class based on the component’s state.
- Type
styleReact.CSSProperties | function—
- Name
- Description
Style applied to the element, or a function that returns a style object based on the component’s state.
- Type
renderReactElement | function—
- Name
- Description
Allows you to replace the component’s HTML element with a different tag, or compose it with another component.
Accepts a
ReactElementor a function that returns the element to render.- Type
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.
| 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. | |
Progress.Indicator.StateHide
Value
A text label displaying the current value.
Renders a <span> element.
children| ((formattedValue: string | null, value: number | null) => React.ReactNode)
| null—
| null
- Name
- Type
classNamestring | function—
- Name
- Description
CSS class applied to the element, or a function that returns a class based on the component’s state.
- Type
styleReact.CSSProperties | function—
- Name
- Description
Style applied to the element, or a function that returns a style object based on the component’s state.
- Type
renderReactElement | function—
- Name
- Description
Allows you to replace the component’s HTML element with a different tag, or compose it with another component.
Accepts a
ReactElementor a function that returns the element to render.- Type
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.
| 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. | |
Progress.Value.StateHide
Label
An accessible label for the progress bar.
Renders a <span> element.
classNamestring | function—
- Name
- Description
CSS class applied to the element, or a function that returns a class based on the component’s state.
- Type
styleReact.CSSProperties | function—
- Name
- Description
Style applied to the element, or a function that returns a style object based on the component’s state.
- Type
renderReactElement | function—
- Name
- Description
Allows you to replace the component’s HTML element with a different tag, or compose it with another component.
Accepts a
ReactElementor a function that returns the element to render.- Type
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.
| 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. | |