mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
33 lines
943 B
Vue
33 lines
943 B
Vue
<script lang="ts" setup>
|
|
import { cn, buttonVariants } from '@/packages/ui/src';
|
|
import { ChevronRight } from 'lucide-vue-next';
|
|
import { RangeCalendarNext, type RangeCalendarNextProps, useForwardProps } from 'reka-ui';
|
|
import { computed, type HTMLAttributes } from 'vue';
|
|
|
|
const props = defineProps<RangeCalendarNextProps & { class?: HTMLAttributes['class'] }>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
|
|
return delegated;
|
|
});
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<RangeCalendarNext
|
|
:class="
|
|
cn(
|
|
buttonVariants({ variant: 'outline' }),
|
|
'h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
props.class
|
|
)
|
|
"
|
|
v-bind="forwardedProps">
|
|
<slot>
|
|
<ChevronRight class="h-4 w-4" />
|
|
</slot>
|
|
</RangeCalendarNext>
|
|
</template>
|