Checkbox controls comprise of a surround and 3 styles, toggled by optional attributes and classes. The attribute should be added to the <input> tag, and classes should follow on from the surrounding <div> and <label>.
| Style | Attribute | Value | Example |
|---|---|---|---|
| Standard | |||
| Standard - Label first |
class
label-first |
||
| Standard - Left aligned |
class
left-aligned |
||
| Standard - No label |
class
no-label |
||
| Disabled |
class
disabled |
disabled
disabled |
|
| Invalid | class | invalid | |
| Disabled and Checked | class | disabled checked | |
<div class="form-group checkbox">
<input type="checkbox" class="form-control" id="<!-- Input control ID goes here -->" name="<!-- Input control name goes here -->" value="">
<label for="<!-- Input control ID goes here -->">
<span class="checkbox-icon"></span>
<!-- Label text goes here -->
</label>
</div>