mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 20:37:46 +00:00
31 lines
657 B
Vue
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>
|