SheetTitle.vue 585 B

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