# Switch ## Basic example Switches are built using the `Switch` component. You can toggle your switch by clicking directly on the component or by pressing the spacebar while it's focused. Toggling the switch fires the `change` event with a negated version of the `checked` value. ```svelte Enable notifications ``` ## Styling [See here](general-concepts#component-styling) for some general notes on styling the components in this library. ## Using a custom label By default, the `Switch` renders a `