2024-12-09 16:52:04 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
|
import type { DrawerDescriptionProps } from "vaul-vue";
|
|
|
|
|
import { DrawerDescription } from "vaul-vue";
|
|
|
|
|
import { type HtmlHTMLAttributes, computed } from "vue";
|
|
|
|
|
|
|
|
|
|
const props = defineProps<
|
|
|
|
|
DrawerDescriptionProps & { class?: HtmlHTMLAttributes["class"] }
|
|
|
|
|
>();
|
|
|
|
|
|
|
|
|
|
const delegatedProps = computed(() => {
|
|
|
|
|
const { class: _, ...delegated } = props;
|
|
|
|
|
|
|
|
|
|
return delegated;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-04-10 13:55:56 +02:00
|
|
|
<DrawerDescription
|
|
|
|
|
data-slot="drawer-description"
|
|
|
|
|
v-bind="delegatedProps"
|
|
|
|
|
:class="cn('text-muted-foreground text-sm', props.class)"
|
|
|
|
|
>
|
2024-12-09 16:52:04 +01:00
|
|
|
<slot />
|
|
|
|
|
</DrawerDescription>
|
|
|
|
|
</template>
|