Default checkbox group
<fieldset class="ecl-form-group" aria-describedby="checkbox-default-helper">
<legend class="ecl-form-label" id="checkbox-default-label">Select your preferred destinations<span
class="ecl-form-label__optional"> (optional)</span></legend>
<div class="ecl-help-block" id="checkbox-default-helper">Helper text for the group</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="es"
id="checkbox-default-1" checked="" /><label for="checkbox-default-1" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Spain</span></label>
<div class="ecl-checkbox__help" id="helper-default-1">Helper text for an option</div>
</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="be"
id="checkbox-default-2" /><label for="checkbox-default-2" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Belgium</span></label>
<div class="ecl-checkbox__help" id="helper-default-2">Helper text for an option</div>
</div>
<div class="ecl-checkbox ecl-checkbox--disabled"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="fr" id="checkbox-default-3" disabled="" /><label for="checkbox-default-3"
class="ecl-checkbox__label"><span class="ecl-checkbox__box ecl-checkbox__box--disabled"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">France (disabled)</span></label>
<div class="ecl-checkbox__help ecl-checkbox__help--disabled" id="helper-default-3">Helper text for an option</div>
</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="lorem"
id="checkbox-default-4" /><label for="checkbox-default-4" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Lorem ipsum dolor sit amet, <a href="/example">consectetur
adipiscing elit</a>. Nullam suscipit eros gravida arcu aliquet, sed finibus nisl egestas. Cras sed purus nec
turpis eleifend dignissim a in massa.</span></label>
<div class="ecl-checkbox__help" id="helper-default-4">Helper text for an option</div>
</div>
</fieldset>
Try it yourself on the playground
PlaygroundInvalid checkbox group
<fieldset class="ecl-form-group" aria-describedby="checkbox-default-helper">
<legend class="ecl-form-label ecl-form-label--invalid" id="checkbox-default-label">Select your preferred
destinations<span class="ecl-form-label__optional"> (optional)</span></legend>
<div class="ecl-help-block" id="checkbox-default-helper">Helper text for the group</div>
<div class="ecl-feedback-message"><svg class="ecl-icon ecl-icon--m ecl-feedback-message__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#error"></use>
</svg> Error message for the group</div>
<div class="ecl-checkbox ecl-checkbox--invalid"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="es" id="checkbox-default-1" checked="" /><label for="checkbox-default-1"
class="ecl-checkbox__label"><span class="ecl-checkbox__box ecl-checkbox__box--invalid"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Spain</span></label>
<div class="ecl-checkbox__help" id="helper-default-1">Helper text for an option</div>
</div>
<div class="ecl-checkbox ecl-checkbox--invalid"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="be" id="checkbox-default-2" /><label for="checkbox-default-2"
class="ecl-checkbox__label"><span class="ecl-checkbox__box ecl-checkbox__box--invalid"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Belgium</span></label>
<div class="ecl-checkbox__help" id="helper-default-2">Helper text for an option</div>
</div>
<div class="ecl-checkbox ecl-checkbox--invalid ecl-checkbox--disabled"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="fr" id="checkbox-default-3" disabled="" /><label for="checkbox-default-3"
class="ecl-checkbox__label"><span
class="ecl-checkbox__box ecl-checkbox__box--invalid ecl-checkbox__box--disabled"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">France (disabled)</span></label>
<div class="ecl-checkbox__help ecl-checkbox__help--disabled" id="helper-default-3">Helper text for an option</div>
</div>
<div class="ecl-checkbox ecl-checkbox--invalid"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="lorem" id="checkbox-default-4" /><label for="checkbox-default-4"
class="ecl-checkbox__label"><span class="ecl-checkbox__box ecl-checkbox__box--invalid"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Lorem ipsum dolor sit amet, <a href="/example">consectetur
adipiscing elit</a>. Nullam suscipit eros gravida arcu aliquet, sed finibus nisl egestas. Cras sed purus nec
turpis eleifend dignissim a in massa.</span></label>
<div class="ecl-checkbox__help" id="helper-default-4">Helper text for an option</div>
</div>
</fieldset>
Try it yourself on the playground
PlaygroundOptional checkbox group
<fieldset class="ecl-form-group" aria-describedby="checkbox-default-helper">
<legend class="ecl-form-label" id="checkbox-default-label">Select your preferred destinations<span
class="ecl-form-label__optional"> (optional)</span></legend>
<div class="ecl-help-block" id="checkbox-default-helper">Helper text for the group</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="es"
id="checkbox-default-1" checked="" /><label for="checkbox-default-1" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Spain</span></label>
<div class="ecl-checkbox__help" id="helper-default-1">Helper text for an option</div>
</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="be"
id="checkbox-default-2" /><label for="checkbox-default-2" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Belgium</span></label>
<div class="ecl-checkbox__help" id="helper-default-2">Helper text for an option</div>
</div>
<div class="ecl-checkbox ecl-checkbox--disabled"><input type="checkbox" name="checkbox-default"
class="ecl-checkbox__input" value="fr" id="checkbox-default-3" disabled="" /><label for="checkbox-default-3"
class="ecl-checkbox__label"><span class="ecl-checkbox__box ecl-checkbox__box--disabled"><svg
class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">France (disabled)</span></label>
<div class="ecl-checkbox__help ecl-checkbox__help--disabled" id="helper-default-3">Helper text for an option</div>
</div>
<div class="ecl-checkbox"><input type="checkbox" name="checkbox-default" class="ecl-checkbox__input" value="lorem"
id="checkbox-default-4" /><label for="checkbox-default-4" class="ecl-checkbox__label"><span
class="ecl-checkbox__box"><svg class="ecl-icon ecl-icon--m ecl-checkbox__icon" focusable="false"
aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#check"></use>
</svg></span><span class="ecl-checkbox__text">Lorem ipsum dolor sit amet, <a href="/example">consectetur
adipiscing elit</a>. Nullam suscipit eros gravida arcu aliquet, sed finibus nisl egestas. Cras sed purus nec
turpis eleifend dignissim a in massa.</span></label>
<div class="ecl-checkbox__help" id="helper-default-4">Helper text for an option</div>
</div>
</fieldset>
Try it yourself on the playground
Playground