Switch

Switch toggles the on or off state of the input.

1. Alike components

Checkboxes are often confused with radio buttons and switches in some use cases. The guidance below helps to differentiate the difference.

SwitchesCheckboxesRadio buttons
Minimum #of options to useOnly one (on or off)At least oneAt least two
Are the choices mutually exclusive?N/A (independent)NoYes
Does the choice need a submission to take effect?NoYesYes
Is there an un-checked state?No (always on or off)YesYes
Can you toggle the state at the same place?YesYesNo

2. Switches vs checkbox

Don't

Don’t use switches if submissions are required. Switch takes effect on action.

Do

Use checkboxes when submission is need to take effect