stackworx / formik-mui

Bindings for using Formik with Material-UI

Home Page:https://stackworx.github.io/formik-mui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic `CheckWithLabel` Not working (trying to make a checkbox group)

CharlestonREM opened this issue · comments

Goal: checkbox group with one name and an array of four values

I want to create a checkbox group with one name and an initialValue of an empty array. But it's not working.

References

docs lacking multiple checkboxes in group example

Docs seem lacking in regard to multiple choices / array. I hope this issue leads to beefing up the docs for future users.

Codesandbox

I attempted to create a checkbox group component with formik-material ui here:
https://codesandbox.io/s/cocky-platform-93jqt?file=/src/index.tsx

screenshots

image

Hi, did you manage to make it work?