Switch or toggle

A type of user interface element that allows the user to change between two states, such as on/off, true/false, etc.