Vue3 ProgressBar is a process status indicator. It supports Vue 3 with PrimeVue 3 and Vue 2 with PrimeVue 2.
Setup
Refer to PrimeVue setup documentation for download and installation steps for your environment such as Vue CLI, Vite or browser.
Import
import ProgressBar from 'primevue/progressbar';
Getting Started
ProgressBar has two modes; "determinate" (default) and "indeterminate". In determinate mode, a value between 0 and 100 is required to display the progress.
<ProgressBar :value="value" />
data() {
return {
value: 0
}
}
Indeterminate is simplly enabled using mode property.
<ProgressBar mode="indeterminate"/>
Slot
A custom label can be placed inside the progress bar via the default slot.
<ProgressBar :value="value">
Percent Complete: {{value}}%
</ProgressBar>
Theming
ProgressBar supports various themes featuring Material, Bootstrap, Fluent as well as your own custom themes via the Designer tool.
Resources
Visit the PrimeVue ProgressBar showcase for demos and documentation.