import type { JSX, ValidComponent } from 'solid-js'; import { splitProps } from 'solid-js'; import type { PolymorphicProps } from '@kobalte/core/polymorphic'; import * as RadioGroupPrimitive from '@kobalte/core/radio-group'; import { cn } from '~/utils/styles'; type RadioGroupRootProps = RadioGroupPrimitive.RadioGroupRootProps & { class?: string | undefined }; const RadioGroup = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as RadioGroupRootProps, ['class']); return ( ); }; type RadioGroupItemProps = RadioGroupPrimitive.RadioGroupItemProps & { class?: string | undefined; children?: JSX.Element; }; const RadioGroupItem = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as RadioGroupItemProps, [ 'class', 'children', ]); return ( {local.children} ); }; type RadioGroupLabelProps = RadioGroupPrimitive.RadioGroupLabelProps & { class?: string | undefined; }; const RadioGroupItemLabel = ( props: PolymorphicProps> ) => { const [local, others] = splitProps(props as RadioGroupLabelProps, ['class']); return ( ); }; export { RadioGroup, RadioGroupItem, RadioGroupItemLabel };