You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pizza.krasnikov.pro/.history/components/UI/InputRadio_20220531231621.tsx

24 lines
529 B

import React from 'react'
import classNames from 'classnames';
interface Props {
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
num: number,
variable: number,
label: string,
value: string,
}
export const Input: React.FC<Props> = ({num, variable, onChange }) => {
return(
<input
type="radio"
name="radio"
className='radioButton'
value={num}
onChange={onChange}
checked={variable == num}
/>
)
}