Skip to content

Switch

The si-switch component allows to toggle settings between two states.

Usage

Switch

When to use

Use a si-switch component when there is a binary state that the user should be able to toggle instantly.

Examples are: On/Off, Online/Offline or Installed/Not installed.

Switches immediately trigger an effect when being clicked.

Dos and don'ts

  • 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.