mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-08 04:19:25 +00:00
21 lines
580 B
Vue
21 lines
580 B
Vue
<script lang="ts" setup>
|
|
import type { DrawerTitleProps } from 'vaul-vue'
|
|
import { DrawerTitle } from 'vaul-vue'
|
|
import { type HtmlHTMLAttributes, computed } from 'vue'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
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>
|