Toggle (switch)
A control that flips between two states: on and off.
Also called: toggle, switch, on off, on/off, turn on turn off, slider switch, circle that slides, dark mode, night mode, sun and moon, lever, light switch
What it is for
Used for settings that take effect immediately, with no extra “Save” button. Unlike a checkbox, flipping a switch changes things right away.
Where you see it
- System settings — Wi-Fi, Bluetooth, airplane mode
- Interfaces — switching between light and dark themes
- Profile settings — turning push notifications on and off
What it is called in code
<input type="checkbox" role="switch">Switch
See also
- Checkbox — A small square you tick to select an option, and untick to deselect it.
- Radio button — A small circle used to pick one option out of several. Choosing another one clears the previous choice.
- Button — An element you click or tap to make something happen: send a form, save your data, go to the next step.