import React, { useState } from 'react'; import './radio.css'; type OptionsProps = { label: string, value: string | number } type Props = { checked: string, disable?: boolean, variant?: 'default' |'primary' | 'secondary' | 'dark', size?: 'default' | 'small' | 'medium' | 'large', handleChange: (e:any) => void; } const genderOptions:OptionsProps[] = [ { label: 'Male', value: 'male' }, { label: 'Female', value: 'female' }, { label: 'Others', value: 'others' } ] const Radio = (props: Props) => { const {checked, disable,variant,size, handleChange} = props; return ( <> { genderOptions && genderOptions.map((item)=>( )) } ) } export default Radio;