5.1.4 Checkbox (single) View in a new window
Used for things like accepting terms and conditions and opting in to communications.
Twig: form/input/input-checkbox-single.twig
Default example
Indication that the text field with required input is valid
Indication that the text field with required input is invalid
Markup
<div class="form__item">
<div class="form__checkbox">
<input type="checkbox" id="singleCheckbox{{ modifier_class }}" class="{{ modifier_class }}" required>
<label for="singleCheckbox" class="label--required">I agree to the terms and conditions</label>
</div>
</div>