How we can create Material UI Switch Group component with yup and formik

Viewed 23

There is no support for SwitchGroup as there is for RadioGroup from Material UI, I am trying to create SwitchGroup to show an error in formik form through yup. But how can we achieve that?

from what I get to understand from this article switch group can be created but how can we add validation to it from yup/ formik?

code sandbox link from the form: https://codesandbox.io/s/blissful-haze-qiymy?from-embed

0 Answers
Related