1.0.5 • Published 3 years ago

@ricadesign/vue-stepper v1.0.5

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

vue-stepper

Vue stepper component to be used with Vuex and Vue Router

Installation:

npm install @ricadesign/vue-stepper

Usage

import Stepper from '@ricadesign/vue-stepper'
Vue.use(Stepper { store, routes })
<stepper></stepper>

Styling:

@import '~@ricadesign/vue-stepper/dist/stepper';

You can pass the following color props to style the stepper. When using both primary and secondary colors, a background gradient will be shown.

PropType
primary-colorString
secondary-colorString
text-color-primaryString
text-color-secondaryString

An image route may also be passed. It will be shown instead of the number once a step is completed:

PropType
imageString

Events emitted:

EventParams (type)
step-clickrouteName (String)

Changing maxIndex:

If needed, use this.$store.commit('steps/setStepsMaxIndex', routeName) to change the max index allowed to be navigated to.

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago