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

23 lines
592 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-xs" name="email">
<Label>工作邮箱</Label>
<InputGroup class="rounded-xl border border-border/80 bg-default shadow-sm">
<InputGroupPrefix>
<IconMail class="size-4 text-muted" aria-hidden="true" />
</InputGroupPrefix>
<InputGroupInput placeholder="you@company.com" />
</InputGroup>
</TextField>
</template>