vue-swizard

1.0.0 • Public • Published

Vue Simple Wizard

Vue component for building a simple multi steps interfaces.

Installation

npm install --save vue-swizard

Basic usage

<swizard>
  <template slot-scope="{ next, prev }">
    <swizard-steps>
      <swizard-step>
        step 1
      </swizard-step>
      <swizard-step>
        step 2
      </swizard-step>
      <swizard-step>
        step 3
      </swizard-step>
    </swizard-steps>

    <swizard-navigation>
      <button @click="prev">back</button>
      <button @click="next">next</button>
    </swizard-navigation>
  </template>
</swizard>

Settings

Name Type Default Description
defaultStep Number 0 Default active step index
next Action You must call this action when you want to go to the next step
prev Action You must call this action when you want to go to the previous step
onFinish Callback Callback function that is triggered when the wizard has been completed

Package Sidebar

Install

npm i vue-swizard

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

216 kB

Total Files

9

Last publish

Collaborators

  • gponsu