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