Toggle
A checkbox styled as a switch.
| Name | Type | What it does |
|---|---|---|
toggle | component | A styled <input type=checkbox> that looks like a switch |
toggle-primary | colour | Tints it with the primary colour |
toggle-secondary | colour | Tints it with the secondary colour |
toggle-success | colour | Tints it with the success colour |
toggle-warning | colour | Tints it with the warning colour |
toggle-danger | colour | Tints it with the danger colour |
Toggles
<label style="display: flex; align-items: center; gap: 0.5rem"><input class="toggle" type="checkbox" checked> Toggle</label>
<label style="display: flex; align-items: center; gap: 0.5rem"><input class="toggle toggle-success" type="checkbox" checked> Success</label>
<label style="display: flex; align-items: center; gap: 0.5rem"><input class="toggle" type="checkbox"> Off</label>