feat: add InputGroup and verify shared field integration
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
InputGroup,
|
||||
InputGroupInput,
|
||||
InputGroupPrefix,
|
||||
Label,
|
||||
TextField,
|
||||
} from "@heroui-vue/components";
|
||||
import { IconMail } from "@tabler/icons-vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="flex flex-col gap-4">
|
||||
<TextField class="w-[280px]" name="primary">
|
||||
<Label>主要变体</Label>
|
||||
<InputGroup variant="primary">
|
||||
<InputGroupPrefix>
|
||||
<IconMail class="size-4 text-muted" aria-hidden="true" />
|
||||
</InputGroupPrefix>
|
||||
<InputGroupInput placeholder="name@email.com" />
|
||||
</InputGroup>
|
||||
</TextField>
|
||||
<TextField class="w-[280px]" name="secondary">
|
||||
<Label>次要变体</Label>
|
||||
<InputGroup variant="secondary">
|
||||
<InputGroupPrefix>
|
||||
<IconMail class="size-4 text-muted" aria-hidden="true" />
|
||||
</InputGroupPrefix>
|
||||
<InputGroupInput placeholder="name@email.com" />
|
||||
</InputGroup>
|
||||
</TextField>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user