Files
heroui-vue/apps/docs/demos/time-field-basic.vue
T

20 lines
422 B
Vue

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