feat: complete field documentation and TextArea examples
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user