# Switch [component-header:sl-switch] Switches allow the user to toggle an option on or off. ```html preview Switch ``` ?> This component doesn't work with standard forms. Use [``](/components/form.md) instead. ## Examples ### Checked Use the `checked` attribute to activate the switch. ```html preview Checked ``` ### Disabled Use the `disabled` attribute to disable the switch. ```html preview Disabled ``` [component-metadata:sl-switch]