4.15.0






Toggle

Physical switch that allows users to turn things on or off. Used for applying system states, presenting binary options and activating a state.

Sizes



Default State



Name and Value

Which of the following vehicles do you own?


Car

Bike

Custom checkbox input


Custom radio inputs

Select one option:


Male

Female

Other


Things to Avoid

Avoid using if there is a selection with no action/execution that follows or if actions need to be confirmed before being applied.
Avoid using for opposing options (ie having an option on each side of toggle and the side that it is flipped to is the option that is selected).

Available Props
id
data
classname
aria
children
checked
name
size
value