A toggle button allows a user to toggle a selection on or off, for example switching between two states or modes.