0.1.2 ā€¢ Published 6 years ago

vue-step-indicator v0.1.2

Weekly downloads
224
License
MIT
Repository
github
Last release
6 years ago

vue-step-indicator

NPM version NPM downloads CircleCI

Simple step indicator for Vue.js

Install

yarn add vue-step-indicator

CDN: UNPKG | jsDelivr (available as window.StepIndicator)

Usage

šŸ‘‰šŸ‘€ Check out the demo!

<template>
  <step-indicator :current="1" :total="3"></step-indicator>
</template>

<script>
import StepIndicator from 'vue-step-indicator'

export default {
  components: {
    StepIndicator
  }
}
</script>

<style src="vue-step-indicator/dist/vue-step-indicator.css"></style>

API

Props

PropTypeDefaultDescription
currentnumber(Required)Index of current step
totalnumber(Required)Total steps
currentColorstring'rgb(68, 0, 204)'Color of current step
defaultColorstring'rgb(130, 140, 153)'Default color of each step
handleClickfunctionTriggered when an indicator is clicked

License

MIT Ā© EGOIST

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago