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

21 lines
515 B
Vue

<script lang="ts" setup>
import type { DrawerTitleProps } from "vaul-vue";
import { type HtmlHTMLAttributes, computed } from "vue";
const props = defineProps<
DrawerTitleProps & { class?: HtmlHTMLAttributes["class"] }
>();
const delegatedProps = computed(() => {
const { class: _, ...delegated } = props;
return delegated;
});
</script>
<template>
<DrawerTitle v-bind="delegatedProps" :class="cn('text-lg font-semibold leading-none tracking-tight', props.class)">
<slot />
</DrawerTitle>
</template>