mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 20:37:44 +00:00
19 lines
475 B
Vue
19 lines
475 B
Vue
<script lang="ts" setup>
|
|
import type { DialogOverlayProps } from "radix-vue";
|
|
import { type HtmlHTMLAttributes, computed } from "vue";
|
|
|
|
const props = defineProps<
|
|
DialogOverlayProps & { class?: HtmlHTMLAttributes["class"] }
|
|
>();
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props;
|
|
|
|
return delegated;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<DrawerOverlay v-bind="delegatedProps" :class="cn('fixed inset-0 z-50 bg-black/80', props.class)" />
|
|
</template>
|