Switch is used to view or switch between enabled or disabled states.
Pass a checked
value
indicating whether it is checked, unchecked or indeterminate.
<script>
import { Switch } from '$lib/default/switch';
let checked = true;
</script>
<Switch bind:checked/> {checked ? '': 'un'}checked