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 />

Released under the MIT License.

Copyright © 2023-PRESENT Carlos Paludetto and Solid Material contributors