A switch is a form element that allows the user to toggle between two states (usually, yes/no).
All properties are sent directly to the underlying HTML <input type="checkbox">
element. The default events are forwarded from the input element.
<Switch />
<Switch bind:checked={notifsOn}>
Enable notifications
</Switch>
Additionally, see this example for usage with a SplitControl
.