Toggle is a button that switches between two states, usually 'on' and 'off', each time it is clicked. Toggle buttons are commonly used to enable or disable a feature, or to choose between two mutually exclusive options.
Keyboard Focus#
When an element has focus, it supports keyboard operations:
Space
: Click to activate the buttonEnter
: Click to activate the buttonTab
/Shift + Tab
: Switch focus
Shortcuts#
When a component has global shortcuts set, the defined combination keys can be used to trigger and activate the button, equivalent to Enter
and Space
.