A switch is any control which presents two mutually exclusive options or states. Switches are also used to select items within lists. See the Coding guide for details on implementing switches in your apps.
- A switch presents two mutually exclusive choices or states.
- There are three types of switch:
- On/Off toggle switches
- Radio buttons
Below are the various available states of the different styles of switches.
There are also function buttons. These are buttons in a toolbar that are used to toggle features on and off. For example:
Depending on the context in which a switch is used, you will position it differently.
Edit switches, such as these switches being used to let the user choose multiple messages to delete, are placed to the left of the content to which they refer while in edit mode.
All other switches
All other switches, including checkboxes and on/off switches, are always placed to the right of their labels or context.