Toggle is a control that is used to quickly switch between two possible states. Toggles are only used for these binary actions that occur immediately after the user “flips” the toggle switch. They are commonly used for “on/off” switches.
Inside of the toggle component is a checkbox and therefore the api and usage works similarly. For example, instead
of passing the
value prop, the
checked prop must be used instead.