Toggle is similar to a two-option radio group in function but is used for quickly switching between binary actions. Toggle must always be accompanied by a label, and follows the same keyboard workflow as a checkbox.
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.
For user input that will be submitted as part of a form use the
Radio components, as applicable.
The toggle is a controlled component, you must provide a
checked state and
You may change the accessibility text, provided to screen readers, based on the
context of the toggle. The default text is