easy-forms
Form components

Checkbox

A single boolean toggle.

Stores a boolean.

Preview
Live

Options

PropTypeDefaultDescription
checkboxLabelstringThe text shown next to the checkbox (distinct from the field label).

Validators

required (must be true) and custom. A custom validator is the idiomatic way to require a checkbox with a friendly message, as shown above.

On this page