Check Group

This input has a customized API to handle a checkbox input type.

import { CheckGroup } from "@adeattwood/react-form";
<CheckGroup attribute="checkMe">
{({ props, error }) => (
<div>
<label htmlFor={props.id}>Check</label>
<input {...props} />
{error && <p>{error}</p>}
</div>
)}
</CheckGroup>