Files
heroui-vue/apps/docs/demos/textfield-on-surface.vue

30 lines
878 B
Vue

<script setup lang="ts">
import {
Description,
Input,
Label,
Surface,
TextArea,
TextField,
} from "@heroui-vue/components";
</script>
<template>
<Surface class="flex w-full min-w-[340px] flex-col gap-4 rounded-3xl p-6">
<TextField name="name" variant="secondary">
<Label>你的姓名</Label>
<Input class="w-full" placeholder="John" />
<Description>我们绝不会与他人分享此信息</Description>
</TextField>
<TextField name="email" type="email" variant="secondary">
<Label>邮箱</Label>
<Input class="w-full" placeholder="john@example.com" />
</TextField>
<TextField name="bio" variant="secondary">
<Label>个人简介</Label>
<TextArea class="w-full" placeholder="介绍一下你自己…" :rows="4" />
<Description>至少 4 行</Description>
</TextField>
</Surface>
</template>