# vue-good-wizard
**Repository Path**: mirrors_xaksis/vue-good-wizard
## Basic Information
- **Project Name**: vue-good-wizard
- **Description**: An easy and clean VueJS 2.x wizard plugin
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-01-11
- **Last Updated**: 2025-12-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# vue-good-wizard
[](https://www.npmjs.com/package/vue-good-wizard)
[](https://github.com/xaksis/vue-good-wizard/releases)
[](https://github.com/xaksis/vue-good-wizard/blob/master/LICENSE)
[](https://www.jsdelivr.com/package/npm/vue-good-wizard)
An easy and clean VueJS 2.x wizard plugin

## Live Demo
[vue-good-wizard Demo](https://jsfiddle.net/aks9800/ygkruetq/)
This is step 1 This is step 2 This is step 3 This is step 4
## Follow the project progress live
[Vue-good-wizard Project](https://timerbit.com/#/public/U1kivTdfbz4T3hJ3E7BJ)
## Getting Started
### Installing
Install with npm:
```bash
npm install --save vue-good-wizard
```
import into project:
```js
import Vue from 'vue';
import VueGoodWizard from 'vue-good-wizard';
Vue.use(VueGoodWizard);
```
**or**
import into component:
```js
// within your component script tag
import { GoodWizard } from 'vue-good-wizard';
// in your components
components: {
'vue-good-wizard': GoodWizard,
}
```
## Example Usage
```html
Step 1
Step 2
Step 3
Step 4
| Option | Description | Type, Example |
|---|---|---|
| steps (required) | Array of objects that specify step titles and page id |
[
{
label: 'Add Constraints', // title for wizard step
page: 'page2', //id for div to show for this step
},
//...
]
|
| onNext (optional) | function called before next page is shown. This is a good place to do validation etc. Return true to proceed, or false to stay on the same page. |
function ex:
function(currentPage){
console.log(currentPage);
return true;
}
|
| onBack (optional) | function called before previous page is shown. Return true to proceed, or false to stay on the same page. |
function ex:
function(currentPage){
console.log(currentPage);
return true;
}
|
| Label options | ||
| previousStepLabel | label for previous step | default: 'Back' |
| nextStepLabel | label for next step | default: 'Next' |
| finalStepLabel | label for final step | default: 'Save' |
| Useful internal functions | ||
| goNext() | for async usecase, you'd want to go next only after your async function is done. See [advanced usecase](https://github.com/xaksis/vue-good-wizard#advanced-usecase---call-next-or-back-asynchronously) | `this.$refs['my-wizard'].goNext(true)` |
| goTo(step) | if you want to go to a step programmatically, you can use this method | `this.$refs['my-wizard'].goTo(2)` // go to 3rd step. |
This is step 1
This is step 3