useCheckboxField()
This hook subscribes to the part of the form specified in name
and returns props for checkbox field, meta information, and helpers.
Import
Types
The returned value is almost identical to Field
. The only difference is that the checked
field is present instead of value
.
useCheckboxField
useCheckboxField
field.checked
field.checked
Example
For nested values, use name
as described here.
Last updated