vue3-form-wizard is a vue based component with no external depenendcies which simplifies tab wizard management.
npm install vue3-form-wizardA dynamic wizard to split your forms easier
Vue3-form-wizard is a vue based component with no external depenendcies which simplifies tab wizard management.
πDocument γ»
π Demos γ»
π¬ Playground
bash
npm install vue3-form-wizard --save
`
`bash
yarn add vue3-form-wizard
`
π Features
- πͺ Interactive docs & demos
- π¦Ύ Type Strong: Written in Typescript, with TS Docs
- π No bundler required: Usable via CDN
- π© Flexible: Configurable event filters and targets
π§ Document
- β‘οΈ Usagae
- β‘οΈ Props
- β‘οΈ Slots
- β‘οΈ Methods
- β‘οΈ Scoped-slots
- β‘οΈ Demos
π Router Integration
Vue3 Form Wizard now supports automatic route synchronization with Vue Router!
$3
First, install Vue Router:
`bash
npm install vue-router@4.1.6
`Configure your Vue app with Vue Router:
`javascript
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'const router = createRouter({
history: createWebHistory(),
routes: [
// Your routes
]
})
const app = createApp(App)
app.use(router)
app.mount('#app')
`$3
Add
route prop to your tab-content components:
`vue
Content for step 1
Content for step 2
Content for step 3
`$3
- β
Automatic Navigation: Tab changes update the URL
- β
URL Sync: Direct URL access navigates to the correct tab
- β
Browser History: Back/forward buttons work correctly
- β
Deep Linking: Shareable URLs for specific wizard steps
$3
The
route prop accepts:
- String: route="/step1" - Direct path
- Object: route="{ name: 'step1', params: { id: 1 } }" - Named routes with params$3
A router test script is included to verify your setup:
`bash
Run the router test
node test-router.js
`The test will check:
- β
Vue Router installation
- β
Router configuration
- β
Route definitions
- β
Component integration
$3
The project includes a complete demo with router integration. Run:
`bash
npm run dev
`Then visit
http://localhost:5173` to see:
#### Old Documentation