Skip to content
+

Progress

The Progress component displays the status of a task or operation over time.

useProgressIndicator API

Import

import { useProgressIndicator } from '@base_ui/react/Progress';

Parameters

NameTypeDefaultDescription
value*number | null-

The current value. The component is indeterminate when value is null.

directionProgressDirection'ltr'

The direction that progress bars fill in

maxnumber100

The maximum value

minnumber0

The minimum value

Return value

NameTypeDescription
getRootProps(externalProps?: React.ComponentPropsWithRef<'span'>) => React.ComponentPropsWithRef<'span'>

useProgressRoot API

Import

import { useProgressRoot } from '@base_ui/react/Progress';

Parameters

NameTypeDefaultDescription
value*number | nullnull

The current value. The component is indeterminate when value is null.

aria-labelstring-

The label for the Indicator component.

aria-labelledbystring-

An id or space-separated list of ids of elements that label the Indicator component.

aria-valuetextstring-

A string value that provides a human-readable text alternative for the current value of the progress indicator.

directionProgressDirection'ltr'

The direction that progress bars fill in

getAriaLabel(index: number | null) => string-

Accepts a function which returns a string value that provides an accessible name for the Indicator component

getAriaValueText(value: number | null) => string-

Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress indicator.

maxnumber100

The maximum value

minnumber0

The minimum value

Return value

NameTypeDescription
directionProgressDirection

The direction that progress bars fill in

getRootProps(externalProps?: React.ComponentPropsWithRef<'div'>) => React.ComponentPropsWithRef<'div'>
maxnumber

The maximum value

minnumber

The minimum value

stateProgressStatus
valuenumber | null

Value of the component