24 lines
553 B
Vue
24 lines
553 B
Vue
<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>
|