Files
better-auth/examples/nuxt-example/components/ui/drawer/DrawerOverlay.vue
Bereket Engida 9f2e45b8c7 chore: cleanup
2025-01-06 14:30:39 +03:00

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>