mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
16 lines
374 B
Vue
16 lines
374 B
Vue
<script lang="ts">
|
|
import { z } from 'zod'
|
|
|
|
export const numberInputSchema = z.literal('number')
|
|
export type NumberInputSchema = z.infer<typeof numberInputSchema>
|
|
</script>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{ schema: NumberInputSchema }>()
|
|
const modelValue = defineModel<number>()
|
|
</script>
|
|
|
|
<template>
|
|
<UInput v-model.number="modelValue" type="number" />
|
|
</template>
|