CreateSwitch is an alias for the same element.

Properties
The label.
Hint text under the label. Optional.
An icon shown beside the label. Optional.
The initial state.
The save key. Optional.
Skip saving.
Runs with the new value on every change.
Handle
The current state.
Set(value, skipCallback?)
Set the state. Pass
true as the second argument to skip the callback.