cagarweyne / DynamicForm

DynamicForm Component Built With Formik
20 stars 6 forks source link

radio button #1

Open msreekm opened 5 years ago

msreekm commented 5 years ago

thanks for shpwing how to create dynamic form using formik. can you add an example of radio button like sex : M/F

WNemencha commented 5 years ago

@msreekm You can implement radio buttons by using almost the same code as the dropdown field. Instead of outputing a <select> you'd output an array of <input type={'radio'} name={field.name} />.