Add NumberBox

This commit is contained in:
Samuel Lorch 2023-04-02 19:21:36 +02:00
parent ffe2bf1880
commit 5f74accfd0

View file

@ -0,0 +1,17 @@
<script setup lang="ts">
const props = defineModel<{
modelValue: number,
min?: number,
max?: number,
}>();
let { modelValue, min, max } = $(props);
</script>
<template>
<input type="number" v-model="modelValue" :min="min" :max="max">
</template>
<style scoped>
</style>