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