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

24 lines
758 B
Vue

<script setup lang="ts">
import {
TimeField,
TimeFieldGroup,
TimeFieldInput,
TimeFieldSegment,
Label,
Description,
} from "@heroui-vue/components";
</script>
<template>
<TimeField class="w-full max-w-48 gap-1.5" name="reminder">
<Label class="font-medium text-foreground">提醒时间</Label>
<Description>每日签到通知。</Description>
<TimeFieldGroup
class="rounded-xl border border-border/80 bg-surface px-2 py-1 shadow-sm ring-1 ring-accent/5 focus-within:border-accent/25 focus-within:ring-2 focus-within:ring-accent/15"
>
<TimeFieldInput v-slot="{ segment }">
<TimeFieldSegment class="text-foreground" :segment="segment" />
</TimeFieldInput>
</TimeFieldGroup>
</TimeField>
</template>