mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-07 00:48:20 +01:00
27 lines
618 B
Vue
27 lines
618 B
Vue
<script lang="ts" setup>
|
|
import { cn } from "@/lib/utils";
|
|
import type { DrawerTitleProps } from "vaul-vue";
|
|
import { DrawerTitle } 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
|
|
data-slot="drawer-title"
|
|
v-bind="delegatedProps"
|
|
:class="cn('text-foreground font-semibold', props.class)"
|
|
>
|
|
<slot />
|
|
</DrawerTitle>
|
|
</template>
|