2024-11-30 00:58:04 +01:00
|
|
|
<script setup lang="ts">
|
2025-03-28 01:16:24 +01:00
|
|
|
import { DialogTitle, type DialogTitleProps } from "reka-ui";
|
2025-06-26 22:39:02 +02:00
|
|
|
import { computed, type HTMLAttributes } from "vue";
|
|
|
|
|
import { cn } from "@/lib/utils";
|
2024-11-30 00:58:04 +01:00
|
|
|
|
|
|
|
|
const props = defineProps<
|
|
|
|
|
DialogTitleProps & { class?: HTMLAttributes["class"] }
|
|
|
|
|
>();
|
|
|
|
|
|
|
|
|
|
const delegatedProps = computed(() => {
|
|
|
|
|
const { class: _, ...delegated } = props;
|
|
|
|
|
|
|
|
|
|
return delegated;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<DialogTitle
|
2025-04-10 13:55:56 +02:00
|
|
|
data-slot="sheet-title"
|
|
|
|
|
:class="cn('text-foreground font-semibold', props.class)"
|
2024-11-30 00:58:04 +01:00
|
|
|
v-bind="delegatedProps"
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</DialogTitle>
|
|
|
|
|
</template>
|