Skip to content

Switch

The switch component allows to toggle settings between two states.

Usage

Switches immediately trigger an effect when being clicked. Examples are: On/Off, Online/Offline or Installed/Not installed.

Switch

When to use

  • When there is a binary state that the user should be able to toggle instantly.

Best practices

  • A label next to the switch must describe the affected property.
  • Don't use the label to describe the states of the switch.
  • A switch never needs an extra button to submit the selected state.

Except where otherwise noted, content on this site is licensed under MIT License.