vue3-number-spinner
v0.0.9
Published
Vue 3 UI component: a number input field that can be controlled with mouse and keyboard
Downloads
2,141
Readme
vue3-number-spinner
This is a direct port of svelte-number-spinner from Svelte to Vue 3.
Demo
Installation
npm install vue3-number-spinner
Usage
<template>
<number-spinner v-model="value" :min="0" :max="100" />
</template>
<script>
import { ref } from 'vue'
import { NumberSpinner } from 'vue3-number-spinner'
export default {
name: 'App',
components: {
NumberSpinner,
},
setup() {
const value = ref(50)
return { value }
},
}
</script>