score:4

Accepted answer
import {useField} from "formik";
export const Radio = ({type, label,...props}) => {
   const [field, meta] = useField(props);
   return (
     <>
       <label className="inline-flex items-center mr-6">
         <input  type={type} {...field}{...props} />
         <span className="ml-2">{label}</span>
       </label>
     </>
   );
 };

Related Query

More Query from same tag