/vue-number-input-spinner

Fork of krystalcampioni/vue-number-input-spinner

Primary LanguageVue

vue-number-input-spinner

A customizable number input spinner component for Vuejs This is a mantained fork of krystalcampioni/vue-number-input-spinner

Demo

https://sergiopalacio.github.io/vue-number-input-spinner/

Installation

  • Install the package via NPM:

  • npm install @sergiopalacio/vue-number-input-spinner

  • Or use yarn:

  • yarn add @sergiopalacio/vue-number-input-spinner

  • Load it in your project:

import NumberInputSpinner from 'vue-number-input-spinner'

export default {
  components: {
    NumberInputSpinner,
  },
}

Usage example:

<number-input-spinner
  :min="0"
  :max="10"
  :step="2"
  :inputClass="your-css-class"
  :buttonClass="your-other-css-class"
  :integerOnly="true"
  v-model="yourVModel"
/>