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
+20
View File
@@ -0,0 +1,20 @@
<script setup lang="ts">
import { ref } from "vue";
import { Description, TextArea } from "@heroui-vue/components";
const value = ref("");
</script>
<template>
<div class="flex w-96 flex-col gap-2">
<TextArea
v-model="value"
aria-describedby="textarea-controlled-description"
aria-label="公告"
placeholder="撰写公告…"
/>
<Description id="textarea-controlled-description">
字符数: {{ value.length }} / 280
</Description>
</div>
</template>