DictionarytoggleSwitching between two states
noun / verb

toggle

TAH-gul/tˈɑɡʌl/

A control or action for switching between two states.

The hand toggles the switch from the dark lamp to the lit lamp.

A two-panel close-up shows the same hand flipping a two-position toggle switch on a small lamp: lever down with the bulb dark, then lever up with the bulb lit.
Etymology

The older noun named a pin used to secure a rope or strap, but its deeper origin is uncertain. The modern verb reflects the later toggle switch and computing key, which alternate between two states.

In context

freeCodeCamp.org10:41
to active and the rest to inactive but I think that that would be kind of excessive because every single time we toggle a book as active we have to toggle everything else as inactive right
Software Engineering Job Interview – Full Mock Interview

More examples

  • She toggled between the two views.
  • The settings panel includes a privacy toggle.
  • He toggles the switch whenever the light is needed.

Forms

toggle · toggles · toggled · toggling

Similar words

switch
Switch is general; toggle particularly means alternate between two states.
button
A button may trigger any action; a toggle maintains one of two states.