mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 04:19:22 +00:00
21 lines
590 B
Vue
21 lines
590 B
Vue
<script lang="ts" setup>
|
|
import type { DrawerDescriptionProps } from 'vaul-vue'
|
|
import { DrawerDescription } from 'vaul-vue'
|
|
import { type HtmlHTMLAttributes, computed } from 'vue'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
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>
|