import { Radio } from '@base-ui/react/radio'; import { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group'; import { cx } from '../../utils/styleUtils'; import style from './RadioGroup.module.scss'; interface RadioGroupProps extends Omit { items: { value: T; label: string; }[]; onValueChange?: (value: T) => void; orientation?: 'horizontal' | 'vertical'; } export default function RadioGroup({ items, className, orientation = 'vertical', onValueChange, ...elementProps }: RadioGroupProps) { return ( onValueChange?.(value as T)} className={cx([style.radioGroup, style[orientation], className])} {...elementProps} > {items.map((item) => ( ))} ); }