mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 12:27:44 +00:00
27 lines
690 B
Vue
27 lines
690 B
Vue
<script setup lang="ts">
|
|
import { type HTMLAttributes, computed } from "vue";
|
|
import {
|
|
type SplitterGroupEmits,
|
|
type SplitterGroupProps,
|
|
useForwardPropsEmits,
|
|
} from "radix-vue";
|
|
|
|
const props = defineProps<
|
|
SplitterGroupProps & { class?: HTMLAttributes["class"] }
|
|
>();
|
|
const emits = defineEmits<SplitterGroupEmits>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
return delegated;
|
|
});
|
|
|
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
</script>
|
|
|
|
<template>
|
|
<SplitterGroup v-bind="forwarded" :class="cn('flex h-full w-full data-[panel-group-direction=vertical]:flex-col', props.class)">
|
|
<slot />
|
|
</SplitterGroup>
|
|
</template>
|