Checkbox


Examples


margin
Learn More
id
string
Required
The ID for the form input
checked
bool
Whether the input is selected or not
label
node
The label for the Checkbox
labelHidden
bool
Hides the label visually, but still accessible to screen readers
disabled
bool
Whether the input is disabled or not
required
bool
Whether the input is required or not
value
string
Value for the input
error
string
Renders an error message message below the input
onChange
function
default: (e) => void
Callback when input checked state changes
onFocus
function
default: (e) => void
Callback when input becomes focused
onBlur
function
default: (e) => void
Callback when input loses focus
helpText
node
Additional text to help the user that renders below the input

margin
Learn More
children
node
Required
Children of the checkbox group fieldset wrapper
label
node
Required
A legend label for checkbox group
labelHidden
bool
Hides the label visually, but still accessible to screen readers
required
bool
Whether this fieldset is required or not