Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
31 lines
840 B
Vue
31 lines
840 B
Vue
<script lang="ts" setup>
|
|
import type { RangeCalendarHeadingProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { cn } from '@/lib/utils'
|
|
import { RangeCalendarHeading, useForwardProps } from 'reka-ui'
|
|
|
|
const props = defineProps<RangeCalendarHeadingProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
defineSlots<{
|
|
default: (props: { headingValue: string }) => any
|
|
}>()
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
</script>
|
|
|
|
<template>
|
|
<RangeCalendarHeading
|
|
v-slot="{ headingValue }"
|
|
data-slot="range-calendar-heading"
|
|
:class="cn('text-sm font-medium', props.class)"
|
|
v-bind="forwardedProps"
|
|
>
|
|
<slot :heading-value>
|
|
{{ headingValue }}
|
|
</slot>
|
|
</RangeCalendarHeading>
|
|
</template>
|