Files
heroui-vue/apps/docs/demos/time-field-with-suffix-icon.vue
T

23 lines
569 B
Vue

<script setup lang="ts">
import {
TimeField,
TimeFieldGroup,
TimeFieldInput,
TimeFieldSegment,
TimeFieldSuffix,
Label,
} from "@heroui-vue/components";
import { IconClock } from "@tabler/icons-vue";
</script>
<template>
<TimeField class="w-[256px]" name="time">
<Label>时间</Label>
<TimeFieldGroup>
<TimeFieldInput v-slot="{ segment }">
<TimeFieldSegment :segment="segment" />
</TimeFieldInput>
<TimeFieldSuffix><IconClock class="size-4 text-muted" /></TimeFieldSuffix>
</TimeFieldGroup>
</TimeField>
</template>