Checkbox
Generates a checkbox.
-
Documentation
-
checkbox
-
checkbox_group
Checkbox
Initially checked
Disabled
Form: derived label
Form: custom label
Emphasised label
Disclosure
Click checkbox to reveal input.
Available hours per week
hours per week
Form: default error message
This uses component
input_validation_message
to conditionally display the default error message.
Form: custom error message
This uses component
input_validation_message
to conditionally display a custom error message.
Form group
Demonstrates
form_control
with attr is_input_group
instead of using convenience component checkbox_group
.