Forms

Switch

A switch component in pure CSS, using the checkbox syntax.

<fieldset>
  <label>
    <input type="checkbox" role="switch" />
    I agree to the Terms
  </label>
  <label>
    <input type="checkbox" role="switch" checked />
    Receive news and offers
  </label>
</fieldset>

Disabled#

<fieldset>
  <label>
    <input type="checkbox" role="switch" disabled />
    Publish on my profile
  </label>
  <label>
    <input type="checkbox" role="switch" checked disabled />
    Change my password at next login
  </label>
</fieldset>

Validation states#