Line data Source code
1 16 : <script setup lang="ts">
2 : import { reactiveOmit } from '@vueuse/core'
3 : import type { RadioGroupRootEmits, RadioGroupRootProps } from 'reka-ui'
4 : import { RadioGroupRoot, useForwardPropsEmits } from 'reka-ui'
5 : import type { HTMLAttributes } from 'vue'
6 :
7 : import { cn } from '@comfyorg/tailwind-utils'
8 :
9 6 : const props = defineProps<
10 : RadioGroupRootProps & { class?: HTMLAttributes['class'] }
11 : >()
12 6 : const emits = defineEmits<RadioGroupRootEmits>()
13 6 : const forwarded = useForwardPropsEmits(reactiveOmit(props, 'class'), emits)
14 6 : </script>
15 :
16 : <template>
17 8 : <RadioGroupRoot
18 : v-bind="forwarded"
19 : data-slot="radio-group"
20 : :class="cn('flex gap-2', props.class)"
21 : >
22 : <slot />
23 : </RadioGroupRoot>
24 : </template>
|