Form
Checkboxes
This component is the component for a form field with multiple checkboxes. If used as a standalone checkbox, see checkbox component.
Elements
This component is composed of two elements:
checkboxes
the wrapper- its child
checkbox
elements
- its child
You can wrap it inside an input
component (see input components) when used as a form field. The checkboxes
class is associated with input__control
.
input
the wrapperinput__label
field labelinput__notice
optional notice (which can also be used to display error messages)input__control checkboxes
the component
Properties
Add classes to the wrapper class to change the style of the component.
Direction
Change the direction of the component.
class="checkboxes"
Default
class="checkboxes checkboxes--portrait"
Disabled
When used as a form field, you can add the input--disabled
to the wrapper like you would for an input component to disable the whole field.
class="input select input--disabled"
Required
When used as a form field, you can add the input--required
to the wrapper like you would for an input component.
class="input select input--required"