mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
23 lines
608 B
Vue
23 lines
608 B
Vue
|
|
<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>
|
||
|
|
<DrawerDescription v-bind="delegatedProps" :class="cn('text-sm text-muted-foreground', props.class)">
|
||
|
|
<slot />
|
||
|
|
</DrawerDescription>
|
||
|
|
</template>
|