# Switch

Use switch for binary on/off settings. Bind `checked` and pair with a label via matching `id` / `for`.
Set `size` to `sm` or `default`.

```svelte
<script lang="ts">
	import { Label } from '~/components/label';
	import { Switch } from '~/components/switch';
</script>

<div class="flex items-center space-x-2">
	<Switch id="airplane-mode" />
	<Label for="airplane-mode">Airplane Mode</Label>
</div>
```