Vue Input Spinner
Vue 2.x component for spinning inputs
Demo
https://vue-input-spinner.netlify.com/
Installation
# Yarn yarn add vue-input-spinner
# NPM npm i vue-input-spinner
How to use
Import at individual .vue files
components: VueInputSpinner // ...;
Or register as a global component
Vue /* Or you can set options */ Vue
Template
or use with props
Available Props
Attribute | Type | Default | Description |
---|---|---|---|
:value | Number | 0 | Value for binding |
:minValue | Number | 0 | Minimum value |
:maxValue | Number | 10**1000 | Maximum value (default infinite) |
:step | Number | 1 | Step between increase and decreases |
:inputClass | String | vis-default-input | width: 50px; height: 50px; text-align: center; font-size: 24px; |
:buttonClass | String | vis-default-button | width: 50px; height: 50px; |
:buttonLeftClass | String | "" | This will overwrite buttonClass |
:buttonRightClass | String | "" | This will overwrite buttonClass |
:buttonLeftText | String | - | Text in left button |
:buttonRightText | String | + | Text in right button |
:editable | Boolean | true | Toggling this converts input into a label |
:readonly | Booelan | false | Readonly input |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
Contributors
Kaan Gökdemir - Author (@kaangokdemir) - kaangokdemir.com
License
MIT