Switch
Switches toggle the state of a single setting on or off.
Basic usage
The Switch
needs a label.
<Switch label="Dark theme" />
States
Disabled
You can disable the Switch
using the isDisabled
prop:
<Switch label="Dark theme" isDisabled />
<Switch label="Dark theme" defaultIsChecked isDisabled />