feat: complete field documentation and TextArea examples

This commit is contained in:
maoyingjie
2026-10-21 23:41:57 +08:00
parent 37e11e6330
commit 116056832c
40 changed files with 2071 additions and 15 deletions
+23
View File
@@ -0,0 +1,23 @@
<script setup lang="ts">
import { FieldError, Input, Label, TextField } from "@heroui-vue/components";
</script>
<template>
<div class="w-[400px] space-y-4">
<TextField full-width name="name">
<Label>你的姓名</Label>
<Input placeholder="John" />
</TextField>
<TextField
full-width
is-invalid
is-required
name="password"
type="password"
>
<Label>密码</Label>
<Input />
<FieldError>密码长度必须超过 8 个字符</FieldError>
</TextField>
</div>
</template>