Files
heroui-vue/apps/docs/demos/input-group-with-suffix-icon.vue
T

28 lines
660 B
Vue

<script setup lang="ts">
import {
Description,
InputGroup,
InputGroupInput,
InputGroupSuffix,
Label,
TextField,
} from "@heroui-vue/components";
import { IconMail } from "@tabler/icons-vue";
</script>
<template>
<TextField class="w-full max-w-[280px]" name="email">
<Label>邮箱地址</Label>
<InputGroup>
<InputGroupInput
class="w-full max-w-[280px]"
placeholder="name@email.com"
/>
<InputGroupSuffix>
<IconMail class="size-4 text-muted" aria-hidden="true" />
</InputGroupSuffix>
</InputGroup>
<Description>我们不会发送垃圾邮件</Description>
</TextField>
</template>