Files
heroui-vue/apps/docs/demos/input-group-default.vue
T

26 lines
583 B
Vue

<script setup lang="ts">
import {
InputGroup,
InputGroupInput,
InputGroupPrefix,
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>
<InputGroupPrefix>
<IconMail class="size-4 text-muted" aria-hidden="true" />
</InputGroupPrefix>
<InputGroupInput
class="w-full max-w-[280px]"
placeholder="name@email.com"
/>
</InputGroup>
</TextField>
</template>