PF6 Switch component
A switch toggles the state of a setting on or off.
See: https://www.patternfly.org/components/switch
Construct a Switch
switch { onChange = ToggleFeature }Set a separate "off" label (shown when unchecked)
Set aria-label for accessibility
Set checked state
Disable the switch
Place the label before the toggle (reversed layout)
Opaque Switch type