API Switch
value: boolean = false
Checkbox valuetrue | false
inline: boolean = false
Checkbox inlinetrue | false
validity: Validity = null
Checkbox validitynull | success | error
The form switch element is an important component that is required to get the activation value or on/off value from the user:
<script>
import { Switch } from 'svelte-spectre'
let value = false
</script>
<Switch bind:value inline validity={null}>Switch</Switch>