<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} />
ReferenceLink for Reference
<progress>Link for this heading
To display a progress indicator, render the built-in browser <progress> component.
<progress value={0.5} />
PropsLink for Props
<progress> supports all common element props.
Additionally, <progress> supports these props:
max: A number. Specifies the maximumvalue. Defaults to1.value: A number between0andmax, ornullfor indeterminate progress. Specifies how much was done.
UsageLink for Usage
Controlling a progress indicatorLink for Controlling a progress indicator
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} />
</>
);
}
Copyright © Meta Platforms, Inc
no uwu plz
uwu?
Logo by@sawaratsuki1004
More
On this page
Search⌘CtrlK
-
react@19
- Overview
- Hooks
- Components
- APIs
-
react-dom@19
- Hooks
- Components
- APIs
- Client APIs
- Server APIs
- Static APIs
-
Rules of React
- Overview
-
React Server Components
- Server Components
- Server Functions
- Directives
-
Legacy APIs
- Legacy React APIs
Is this page useful?