---
title: Checkboxes Example
description: This example demonstrates how to use Formik with a checkbox group. Given that the field's all share the same `name`, Formik will automagically bind them to an single array.
---

This example demonstrates how to use Formik with a checkbox group. Given that the field's all share the same `name`, Formik will automagically bind them to an single array.

<div className="embed-responsive aspect-ratio-square">
  <iframe
  src="https://codesandbox.io/embed/github/formik/formik/tree/master/examples/checkboxes?fontsize=14&hidenavigation=1&theme=dark"
  style={{ width:'100%', height: '100%', border:0, borderRadius: 4, overflow: 'hidden'}}
  title="formik/formik: async-submission"
  allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
  ></iframe>
</div>

---
title: Checkboxes Example
description: This example demonstrates how to use Formik with a checkbox group. Given that the fields all share the same `name`, Formik will automagically bind them to a single array.
---

This example demonstrates how to use Formik with a checkbox group. Given that the fields all share the same `name`, Formik will automagically bind them to a single array.

<div className="embed-responsive aspect-ratio-square">
  <iframe
  src="https://codesandbox.io/embed/github/formik/formik/tree/master/examples/checkboxes?fontsize=14&hidenavigation=1&theme=dark"
  style={{ width:'100%', height: '100%', border:0, borderRadius: 4, overflow: 'hidden'}}
  title="formik/formik: async-submission"
  allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
  sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
  ></iframe>
</div>

Fix typos on Checkboxes Example Page
Fix typos on Checkboxes Example Page