mirror of
https://github.com/keven1024/015.git
synced 2026-05-30 17:09:34 +00:00
25 lines
636 B
Vue
25 lines
636 B
Vue
<script lang="ts" setup>
|
|
import type { DrawerDescriptionProps } from 'vaul-vue'
|
|
import { cn } from '@/lib/utils'
|
|
import { DrawerDescription } from 'vaul-vue'
|
|
import { computed, type HtmlHTMLAttributes } from 'vue'
|
|
|
|
const props = defineProps<DrawerDescriptionProps & { class?: HtmlHTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props
|
|
|
|
return delegated
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<DrawerDescription
|
|
data-slot="drawer-description"
|
|
v-bind="delegatedProps"
|
|
:class="cn('text-muted-foreground text-sm', props.class)"
|
|
>
|
|
<slot />
|
|
</DrawerDescription>
|
|
</template>
|