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

25 lines
621 B
Vue

<script setup lang="ts">
import {
InputGroup,
InputGroupInput,
InputGroupPrefix,
InputGroupSuffix,
Label,
TextField,
} from "@heroui-vue/components";
import { IconWorld } from "@tabler/icons-vue";
</script>
<template>
<TextField class="w-full max-w-[280px]" default-value="heroui" name="website">
<Label>网站</Label>
<InputGroup>
<InputGroupPrefix>
<IconWorld class="size-4 text-muted" aria-hidden="true" />
</InputGroupPrefix>
<InputGroupInput class="w-full max-w-[280px]" />
<InputGroupSuffix>.com</InputGroupSuffix>
</InputGroup>
</TextField>
</template>