Line data Source code
1 16 : <script setup lang="ts">
2 : import type { ToastTitleProps } from 'reka-ui'
3 : import { ToastTitle, useForwardProps } from 'reka-ui'
4 : import type { HTMLAttributes } from 'vue'
5 :
6 : import { cn } from '@comfyorg/tailwind-utils'
7 :
8 2355 : const { class: className, ...restProps } = defineProps<
9 : ToastTitleProps & { class?: HTMLAttributes['class'] }
10 : >()
11 168 : const forwardedProps = useForwardProps(restProps)
12 168 : </script>
13 :
14 : <template>
15 1546 : <ToastTitle
16 : v-bind="forwardedProps"
17 : :class="
18 : cn('text-sm font-medium wrap-break-word whitespace-pre-line', className)
19 : "
20 : >
21 : <slot />
22 : </ToastTitle>
23 : </template>
|