A toggle switch displays the state of a boolean value (on or off), and also gives the operator a widget through which they can change the value.
The state of the toggle switch can be bound to bit value in a device's memory.
The state can also be simultaneously stored to a variable.
Multiple toggle switches can be bound to the same device address or variable, and when toggled on, will turn all others off.