feat: migrate NumberField with form integration and docs

This commit is contained in:
maoyingjie
2026-10-23 11:48:06 +08:00
parent 7fc8315037
commit 23527d4e4c
43 changed files with 2788 additions and 9 deletions
@@ -0,0 +1,22 @@
<script setup lang="ts">
import {
Label,
NumberField,
NumberFieldDecrementButton,
NumberFieldGroup,
NumberFieldIncrementButton,
NumberFieldInput,
} from "@heroui-vue/components";
</script>
<template>
<div class="w-[400px] max-w-full space-y-4">
<NumberField fullWidth :defaultValue="1024" :minValue="0" name="width">
<Label>宽度</Label>
<NumberFieldGroup>
<NumberFieldDecrementButton />
<NumberFieldInput />
<NumberFieldIncrementButton />
</NumberFieldGroup>
</NumberField>
</div>
</template>