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
How do I create a custom component that employs Material UI Tabs behavior while using the Formik Field component and radio group behavior?
I'm running into issues in the sandbox. I want to use the fieldToRadioGroup function that is provided but it's unclear how. I am trying an approach based on this prior issue and solution.
Intended Behavior
to use mui tabs component as a Formik radio field
employ formik-material-ui's fieldToRadioGroup function to create custom radio component
to set the field value of the Field as soon as the Tabs component ComponentDidMount
thinking i should employ React hook useEffect for onload setting field value to active tab value
Problem / Question:
How do I create a custom component that employs Material UI
Tabs
behavior while using the FormikField
component and radio group behavior?I'm running into issues in the sandbox. I want to use the
fieldToRadioGroup
function that is provided but it's unclear how. I am trying an approach based on this prior issue and solution.Intended Behavior
fieldToRadioGroup
function to create custom radio componentField
as soon as theTabs
componentComponentDidMount
useEffect
for onload setting field value to active tab valueCode Sandbox
Here is the code sandbox attempt based on formik material ui codesandbox:
https://codesandbox.io/s/keen-cloud-vhpvd?file=/src/index.tsx
Background Info
The text was updated successfully, but these errors were encountered: