Files
heroui-vue/apps/docs/demos/search-field-custom-styles.vue
T
2026-10-22 08:46:02 +08:00

25 lines
666 B
Vue

<script setup lang="ts">
import {
SearchFieldClearButton,
SearchFieldSearchIcon,
SearchFieldGroup,
SearchFieldInput,
SearchField,
Label,
} from "@heroui-vue/components";
</script>
<template>
<SearchField class="w-full max-w-64" name="docs" variant="secondary">
<Label class="font-medium text-foreground">搜索文档</Label>
<SearchFieldGroup class="rounded-xl bg-default">
<SearchFieldSearchIcon class="text-muted" />
<SearchFieldInput
class="placeholder:text-muted"
placeholder="组件、指南..."
/>
<SearchFieldClearButton class="text-muted" />
</SearchFieldGroup>
</SearchField>
</template>