<progress>Link for this heading

January 6, 2025 · View on GitHub

The built-in browser <progress> component lets you render a progress indicator.

<progress value={0.5} />

To display a progress indicator, render the built-in browser <progress> component.

<progress value={0.5} />

See more examples below.

<progress> supports all common element props.

Additionally, <progress> supports these props:

  • max: A number. Specifies the maximum value. Defaults to 1.
  • value: A number between 0 and max, or null for indeterminate progress. Specifies how much was done.

To display a progress indicator, render a <progress> component. You can pass a number value between 0 and the max value you specify. If you don’t pass a max value, it will assumed to be 1 by default.

If the operation is not ongoing, pass value={null} to put the progress indicator into an indeterminate state.

App.js

App.js

ResetFork

export default function App() {
  return (
    <>
      <progress value={0} />
      <progress value={0.5} />
      <progress value={0.7} />
      <progress value={75} max={100} />
      <progress value={1} />
      <progress value={null} />
    </>
  );
}

Previous<option>

Next<select>


Copyright © Meta Platforms, Inc

no uwu plz

uwu?

Logo by@sawaratsuki1004

Learn React

Quick Start

Installation

Describing the UI

Adding Interactivity

Managing State

Escape Hatches

API Reference

React APIs

React DOM APIs

Community

Code of Conduct

Meet the Team

Docs Contributors

Acknowledgements

More

Blog

React Native

Privacy

Terms

On this page


React

v19

Search⌘CtrlK

Learn

Reference

Community

Blog

Is this page useful?

API Reference

Components