Files
better-auth/examples/nuxt-example/components/ui/range-calendar/RangeCalendarGrid.vue
2024-09-27 13:36:20 +03:00

31 lines
657 B
Vue

<script lang="ts" setup>
import { type HTMLAttributes, computed } from "vue";
import {
RangeCalendarGrid,
type RangeCalendarGridProps,
useForwardProps,
} from "radix-vue";
import { cn } from "@/lib/utils";
const props = defineProps<
RangeCalendarGridProps & { class?: HTMLAttributes["class"] }
>();
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props;
return delegated;
});
const forwardedProps = useForwardProps(delegatedProps);
</script>
<template>
<RangeCalendarGrid
:class="cn('w-full border-collapse space-y-1', props.class)"
v-bind="forwardedProps"
>
<slot />
</RangeCalendarGrid>
</template>