# Switch
[component-header:sl-switch]
Switches allow the user to toggle an option on or off.
```html preview
Switch
```
```jsx react
import { SlSwitch } from '@shoelace-style/shoelace/dist/react';
const App = () => Switch;
```
?> This component works with standard `