Line data Source code
1 24 : <script setup lang="ts">
2 : import type { HTMLAttributes } from 'vue'
3 :
4 : import { cn } from '@comfyorg/tailwind-utils'
5 :
6 : const { class: className } = defineProps<{
7 : class?: HTMLAttributes['class']
8 : }>()
9 : </script>
10 :
11 : <template>
12 : <p
13 : data-slot="field-description"
14 : :class="
15 : cn(
16 : 'text-sm/normal font-normal text-muted-foreground [[data-slot=field]:has([data-orientation=horizontal])_&]:text-balance',
17 : 'last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5',
18 : '[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-foreground',
19 : className
20 : )
21 : "
22 : >
23 : <slot />
24 : </p>
25 : </template>
|