LCOV - code coverage report
Current view: top level - packages/design-system/src/components/field - FieldLabel.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 1 1
Test Date: 2026-11-17 04:17:53

            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              : import Label from '@comfyorg/design-system/label/Label'
       7              : 
       8              : const { class: className } = defineProps<{
       9              :   class?: HTMLAttributes['class']
      10              : }>()
      11              : </script>
      12              : 
      13              : <template>
      14              :   <Label
      15              :     data-slot="field-label"
      16              :     :class="
      17              :       cn(
      18              :         'group/field-label peer/field-label w-fit leading-snug group-data-[disabled=true]/field:opacity-50',
      19              :         'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-4',
      20              :         'has-data-[state=checked]:border-foreground has-data-[state=checked]:bg-foreground/10',
      21              :         className
      22              :       )
      23              :     "
      24              :   >
      25              :     <slot />
      26              :   </Label>
      27              : </template>
        

Generated by: LCOV version 2.0-1