Vue Step Progress Indicator
This is a simple, very customizable step progress indicator, which can be used to indicate available steps in situations where the user has to fill a multi step form.
Installation
Use the package manager npm to install Vue Step Progress Indicator.
Usage
Installation
Import the component, register the component and you are good to go!
Using component
Props
Name | Type | Usage |
---|---|---|
steps | Array | Indicates a list of labels to be displayed for each step |
active-step | Number | Indicates the currently active step |
is-reactive | Boolean | If true, the progress bubbles will be clickable, and events will be emitted on user click |
reactivity-type | String | If is-reactive is true, this can be used to define which step indicators the user can click. Values that can be passed are: all, backward, forward, single-step. All will make all the indicators clickable, backward will be only clicking previous steps possible, forward will make only forward buttons clickable, single-step will make one step backward and forward clickable |
show-label | Boolean | If true, labels will be displayed |
show-bridge | Boolean | If true, the bridges will be displayed (bridges will be displayed on small devices, irrespective of this) |
show-bridge-on-small-devices | Boolean | If false, the bridges will be hidden even on smaller devices |
styles | Object | Provide custom style for various UI components |
colors | Object | Provide colors for various UI components |
Events
Name | Usage |
---|---|
onStepChanged | Fired if is-reactive is true, and user clicks on some step |
onEnterFinalStep | Fired if is-reactive is true, and user is on the final step |
Customization
This package has been created by taking your customization needs in mind. You can not only provide colors for components for different states (active
, inactive
and completed
), you can do custom styling for each component in the UI. Here is an example.
You may also want to customize the colors of components. The progress bubbles can have one of three states, active
, inactive
& completed
. You can set color
, backgroundColor
, borderColor
for each component. You can pass colors for each component as:
Screenshots
On large devices, the labels are shown and the bridges are hidden by default.
On smaller devices, the labels are hidden and the bridges are shown by default.