Switch

A control that allows the user to toggle between checked and not checked.

Usage

You can style a <input type="checkbox"> element as a switch by adding a role="switch" attribute, and adding the input class or having a parent with the form class (read more about form).

<input type="checkbox" role="switch" class="input">

Examples

Form

Email Notifications

Receive emails about new products, features, and more.

Receive emails about new products, features, and more.