- Moved `app.config.ts` to the `app` directory - Migrated `.vue` files and other assets to the `app` directory - Updated import paths to reflect the new file locations
21 lines
601 B
Vue
21 lines
601 B
Vue
<script lang="ts" setup>
|
|
import type { DrawerTitleProps } from 'vaul-vue'
|
|
import type { HtmlHTMLAttributes } from 'vue'
|
|
import { cn } from '@/lib/utils'
|
|
import { DrawerTitle } from 'vaul-vue'
|
|
import { 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>
|