Skip to main content

Toggle

Demo

Note

  • Alternatively, a toggle is also called a 'switch'.
  • This toggle uses a hidden checkbox to adjust the styling for the checked state.

States & Variations

Default

The default toggle.

Checked

When the input is clicked, an attribute of checked is added.

Anatomy

  1. Toggle
  2. Toggle Switch / Toggle Checkbox (Hidden)
  3. Toggle Label
Toggle Anatomy