Skip to content

Switches

Use when the change applies immediately. For form submissions, prefer a checkbox.

<input type="checkbox" role="switch" class="switch" />
<input type="checkbox" role="switch" class="switch" checked />
<input type="checkbox" role="switch" class="switch" disabled />
<input type="checkbox" role="switch" class="switch" disabled checked />

.field-row lays the switch and label out on one line; the default .field stacks vertically.

<div class="field field-row">
<input type="checkbox" role="switch" class="switch" checked />
<label class="field-label">Email notifications</label>
</div>