Switch

A switch is used to view or toggle between on or off states.

Default

The default form of a switch component:

Checked

The switch state is managed by react and is set to true:

Unchecked

The switch state is managed by react and is set to false:

Disabled

The switch is disabled:

The switch is disabled and the state is set to true;