Toggle switch
A sliding switch for a single on or off setting.
A toggle is a small horizontal track with a circular handle that slides between two positions. It is the digital equivalent of a light switch — one tap changes the state immediately.
Reach for a toggle when you have a single setting that is either on or off and the change takes effect right away. If the change only applies after the user clicks Save, a checkbox is clearer.