ProgressBar

Progress bars show either determinate or indeterminate progress of an operation over time.

Theme 
Loading…80%
 
 
80
isIndeterminate 
formatOptions 
 
Example
ProgressBar.tsx
ProgressBar.css
import {ProgressBar} from './ProgressBar';

<ProgressBar label="Loading…" value={80} />

Value

By default, the value prop is a percentage between 0 and 100. Use the minValue, and maxValue props to set a custom value scale.

Progress33%
 
 
<ProgressBar
  label="Progress"
  maxValue={150}
  value={50} />

ProgressCircle

Use SVG within a <ProgressBar> to build a circular progress indicator or spinner.

 
60
isIndeterminate 
Example
ProgressCircle.tsx
import {ProgressCircle} from './ProgressCircle';

<ProgressCircle
  aria-label="Loading…"
  value={60}
  size={64} />

API

Shows a progress bar with labels pointing to its parts, including the label, fill, track, and value label elements.ValueLabelLoading data…26%TrackFill
<ProgressBar>
  <Label />
</ProgressBar>

ProgressBar

Progress bars show either determinate or indeterminate progress of an operation over time.

NameTypeDefault
isIndeterminatebooleanDefault:
Whether presentation is indeterminate when progress isn't known.
valueLabelReactNodeDefault:
The content to display as the value's label (e.g. 1 of 4).
valuenumberDefault: 0
The current value (controlled).
children<>Default:
The children of the component. A function may be provided to alter the children based on component state.
formatOptionsIntl.NumberFormatOptionsDefault: {style: 'percent'}
The display format of the value label.

Default className: react-aria-ProgressBar

Render PropCSS Selector
percentageCSS Selector:
The value as a percentage between the minimum and maximum.
valueTextCSS Selector: [aria-valuetext]
A formatted version of the value.
isIndeterminateCSS Selector: :not([aria-valuenow])
Whether the progress bar is indeterminate.