Light
Dark
<label class="tl-choice"><input class="tl-checkbox" type="checkbox"> Newsletter</label>
<label class="tl-choice"><input class="tl-radio" type="radio" name="freq"> Monthly</label>
<label class="tl-choice"><input class="tl-toggle" type="checkbox" role="switch"> Dark map</label>
States
| Default | Hover | Focus | Disabled | |
|---|---|---|---|---|
| Checkbox off | ||||
| Checkbox on | ||||
| Checkbox mixed | ||||
| Radio off | ||||
| Radio on | ||||
| Toggle off | ||||
| Toggle on |
Guidelines
Do
Use a toggle only when the change takes effect immediately. Use a checkbox when it applies after pressing Save.
Don't
Use radios for a single yes/no choice; that's a checkbox.
Figma: Checkbox (12 variants), Radio (8) and Toggle (8) component sets.