GitHub - parsajiravand/vue3-form-wizard: A vue3 based tab/form wizard (original) (raw)

Vue3 form wizard

A dynamic wizard to split your forms easier

Demo

Vue3-form-wizard is a vue based component with no external depenendcies which simplifies tab wizard management.

version MIT license downloads
gzip size no dependencies travis

πŸ“šDocument γƒ»πŸ”Ž Demos ・ πŸ”¬ Playground

Dependencies

Installation

npm install vue3-form-wizard --save

yarn add vue3-form-wizard

πŸš€ Features

πŸ”§ Document

πŸ”— Router Integration

Vue3 Form Wizard now supports automatic route synchronization with Vue Router!

Setup

First, install Vue Router:

npm install vue-router@4.1.6

Configure your Vue app with Vue Router:

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')

Usage

Add route prop to your tab-content components:

Content for step 1 Content for step 2 Content for step 3

Features

Route Types

The route prop accepts:

Testing Router Functionality

A router test script is included to verify your setup:

Run the router test

node test-router.js

The test will check:

Demo

The project includes a complete demo with router integration. Run:

Then visit http://localhost:5173 to see:

Until the version is completely stable

This is a cloned package from vue-form-wizard.Updated to vue 3 with new features and bug fixes

Old Documentation