Files
heroui-vue/apps/docs/demos/input-group-with-text-prefix.vue

24 lines
459 B
Vue

<script setup lang="ts">
import {
InputGroup,
InputGroupInput,
InputGroupPrefix,
Label,
TextField,
} from "@heroui-vue/components";
</script>
<template>
<TextField
class="w-full max-w-[280px]"
default-value="heroui.com"
name="website"
>
<Label>网站</Label>
<InputGroup>
<InputGroupPrefix>https://</InputGroupPrefix>
<InputGroupInput class="w-full max-w-[280px]" />
</InputGroup>
</TextField>
</template>