Introducing PrimeReact v11-alpha 🎉Discover Now
styledMisc

ProgressBar

ProgressBar is a process status indicator.

British Airways·BA 178
On Time
LHR14:30
JFK18:45
75%
2h 04m remaining
preview

Usage#

import { ProgressBar } from '@primereact/ui/progressbar';
<ProgressBar.Root>
    <ProgressBar.Track>
        <ProgressBar.Indicator>
            <ProgressBar.Label>
                <ProgressBar.Value />
            </ProgressBar.Label>
        </ProgressBar.Indicator>
    </ProgressBar.Track>
</ProgressBar.Root>

Examples#

Basic#

Reflects the completion percentage of an ongoing process.

50%
basic-demo

Dynamic#

Value is reactive so updating it dynamically changes the bar as well.

Uploading Files
0%
dynamic-demo

Formatter#

Custom formatter function to format the display value.

50/100
formatter-demo

Template#

Place ProgressBar.Value where the progress value should be displayed inside the ProgressBar and customize formatter prop to display in different format.

Basic Percentage0.0%
File Size Progress0.00 B / 4.88 KB
Time Remaining0% (25s remaining)
Upload Status StepsPreparing file...
template-demo

Indeterminate#

For progresses with no value to track, set the mode property to indeterminate.

indeterminate-demo

As Steps#

Steps are used to display a progress with multiple steps.

Order Placed
25%
steps-demo

API#

Sub-Components#

See Primitive API for ProgressBarRoot, ProgressBarTrack, ProgressBarIndicator, ProgressBarLabel, ProgressBarValue component documentation.

Hooks#

See Headless API for useProgressBar hook documentation.

Accessibility#

See ProgressBar Primitive for WAI-ARIA compliance details and keyboard support.