---
meta:
title: Switch
description: Switches allow the user to toggle an option on or off.
layout: component
---
```html:preview
Switch
```
```jsx:react
import SlSwitch from '@shoelace-style/shoelace/dist/react/switch';
const App = () => Switch;
```
:::tip
This component works with standard `