mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +00:00
26 lines
580 B
Vue
26 lines
580 B
Vue
<script lang="ts" setup>
|
|
import { type HTMLAttributes, computed } from "vue";
|
|
import { type CalendarGridProps, useForwardProps } from "radix-vue";
|
|
|
|
const props = defineProps<
|
|
CalendarGridProps & { class?: HTMLAttributes["class"] }
|
|
>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
|
|
return delegated;
|
|
});
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<CalendarGrid
|
|
:class="cn('w-full border-collapse space-y-1', props.class)"
|
|
v-bind="forwardedProps"
|
|
>
|
|
<slot />
|
|
</CalendarGrid>
|
|
</template>
|