Progress Bar

# Documentation

Progress Bar component can be used as a process status indicator for a time-consuming process.

#Dynamic

You can use the progress bar for various purpose like showing status,progress etc. LightVue comes with some stunning designs for progress bar.You can Update the progerss bar by Updating value prop.You can also hide or show the Value on progerss bar by setting showValue false. LightVue Progress bar is Both compatible with Vue 3.x and Vue 2.x

#Static

You can use the progress bar for various purpose like showing status,progress etc. LightVue comes with some stunning designs for progress bar.You can Update the progerss bar by Updating value prop.You can also hide or show the Value on progerss bar by setting showValue false. LightVue Progress bar is Both compatible with Vue 3.x and Vue 2.x

#Indeterminate

You can also set the mode to intermidiate by settting mode prop to indeterminate

#Colored

You can change the colour of progress bar by passing a color string into color prop

#Setup

You can import a component and register it as a local and global vue component as follows:

// import the component
import lv-progressbar from 'lightvue/progressbar';
// Register the component locally
export default {
    components: {
        lv-progressbar
    }
}
// Register the component globally (Vue 2.x)
Vue.component('lv-progressbar', lv-progressbar);

// Register the component globally (Vue 3.x)
const app = Vue.createApp({
  // ...
});
app.component('lv-progressbar', lv-progressbar);
app.mount('#app')
               

#APIs

All of the props, events and slots of the component are mentioned below:

Props
Type
Default
Description
value
Number
0
Current progress in %, applicable only in determinate mode.
mode
String
determinate
Type of progress bar required, "determinate" or "indeterminate".
color
String
#607c8a
Color of the progress bar.
showValue
Boolean
true
Choose if you want to show or hide the current % of progress