Declarative Formik forms with MUI
15:55 06 Mar 2022

I would like to use formik with MUI. There doesn't seem to be a clear path to do this, the documentation does not make sense and the examples are nonsensical with compared to the docs.

For example. This page is at the top level of formik's examples. It is the only example that I can find on formik's site where MUI is integrated.

  • The example uses the hooks method. There doesn't seem to be an example of the component method
  • The example imports the button and the text field from the core material UI package. However, in this sandbox, components are imported from @mui/material and form formik-mui. Why two different package? Why isn't this covered in the docs?

All I want to do is build a formik form with mui styling and I can't find any docs for that.

For example, if I want to use a MUI text field, there are online examples that suggest using this method. However, once again I cannot find this in the docs and there is no explanation as to what is happening here or how I apply any props to this text field.

    

What am I missing here? I just want to build declarative formik forms with MUI.

material-ui formik formik-material-ui