You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @gilbertlucas46 - Here was my solution for adding checkboxes (or any other form components like radio buttons, select dropdowns etc.)
Download formik-mui from npm
import the Switch component and insert it into a formik <Field/> component like this:
import { Field } from 'formik';
import { Switch } from 'formik-mui';
<FormControlLabel
control={
<Field
name="[your-form-field-name]"
component={Switch}
type="checkbox"
/>
}
label="Do you want to do this"/>
No description provided.
The text was updated successfully, but these errors were encountered: