html
<!-- Checked -->
<label class="switch" aria-label="Label">
<input type="checkbox" role="switch" />
</label>
<!-- Unchecked. Demos another common pattern where the input is next to the label with the use of the .sr-only class -->
<div class="switch">
<label for="switch-unchecked" class="sr-only">Label</label>
<input id="switch-unchecked" type="checkbox" role="switch" />
</div>
<!-- Checked & disabled -->
<label class="switch" aria-label="Label">
<input type="checkbox" role="switch" checked disabled />
</label>
<!-- Unchecked & disabled -->
<label class="switch" aria-label="Label">
<input type="checkbox" role="switch" disabled />
</label>