Checkbox, radio, toggle
Choice controls that follow the accent color.
Checkbox
<div class="stack">
<label class="choice"><input type="checkbox" class="check" checked> Email me about new releases</label>
<label class="choice"><input type="checkbox" class="check"> Share anonymous usage data</label>
<label class="choice"><input type="checkbox" class="check" disabled> Unavailable on your plan</label>
</div>Radio
<div class="stack">
<label class="choice"><input type="radio" name="plan" class="check" checked> Free</label>
<label class="choice"><input type="radio" name="plan" class="check"> Pro</label>
<label class="choice"><input type="radio" name="plan" class="check"> Team</label>
</div>Toggle
<div class="stack">
<label class="choice"><input type="checkbox" class="toggle" checked> Notifications</label>
<label class="choice"><input type="checkbox" class="toggle"> Dark sidebar</label>
</div>Classes
| Selector | Purpose |
|---|---|
.check | Checkbox; with type="radio" it becomes round |
.toggle | Switch (a checkbox) |
.choice | Label that lines up the control and its text |