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

            Line data    Source code
       1           16 : <script setup lang="ts">
       2              : import { reactiveOmit } from '@vueuse/core'
       3              : import type { RadioGroupItemEmits, RadioGroupItemProps } from 'reka-ui'
       4              : import {
       5              :   RadioGroupIndicator,
       6              :   RadioGroupItem,
       7              :   useForwardPropsEmits
       8              : } from 'reka-ui'
       9              : import type { HTMLAttributes } from 'vue'
      10              : 
      11              : import { cn } from '@comfyorg/tailwind-utils'
      12              : 
      13           16 : const props = defineProps<
      14              :   RadioGroupItemProps & { class?: HTMLAttributes['class'] }
      15              : >()
      16           16 : const emits = defineEmits<RadioGroupItemEmits>()
      17           16 : const forwarded = useForwardPropsEmits(reactiveOmit(props, 'class'), emits)
      18              : </script>
      19              : 
      20              : <template>
      21              :   <RadioGroupItem
      22              :     v-bind="forwarded"
      23              :     data-slot="radio-group-item"
      24              :     :class="
      25              :       cn(
      26              :         'inline-flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full border bg-transparent outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-foreground',
      27              :         props.class
      28              :       )
      29              :     "
      30              :   >
      31              :     <slot>
      32              :       <RadioGroupIndicator class="size-2 rounded-full bg-foreground" />
      33              :     </slot>
      34              :   </RadioGroupItem>
      35              : </template>
        

Generated by: LCOV version 2.0-1