SheetDescription.vue 621 B

123456789101112131415161718192021
  1. <script setup lang="ts">
  2. import type { DialogDescriptionProps } from "reka-ui"
  3. import type { HTMLAttributes } from "vue"
  4. import { reactiveOmit } from "@vueuse/core"
  5. import { DialogDescription } from "reka-ui"
  6. import { cn } from '@/Packages/Shadcn/Lib/utils'
  7. const props = defineProps<DialogDescriptionProps & { class?: HTMLAttributes["class"] }>()
  8. const delegatedProps = reactiveOmit(props, "class")
  9. </script>
  10. <template>
  11. <DialogDescription
  12. data-slot="sheet-description"
  13. :class="cn('text-muted-foreground text-sm', props.class)"
  14. v-bind="delegatedProps"
  15. >
  16. <slot />
  17. </DialogDescription>
  18. </template>