Enable notifications
(enabled = e.detail)}
class={enabled ? "switch switch-enabled" : "switch switch-disabled"}
>
Enable notifications
```
By default, clicking a `SwitchLabel` will toggle the switch, just like labels in native HTML checkboxes do. If you'd like to make the label non-clickable (which you might if it doesn't make sense for your design), you can add a `passive` prop to the `SwitchLabel` component:
```svelte