<script lang="ts">
import { Label } from "$lib/components/ui/label/index.js";
import { Switch } from "$lib/components/ui/switch/index.js";
</script>
<div class="flex items-center space-x-2">
<Switch id="airplane-mode" />
<Label for="airplane-mode">Airplane Mode</Label>
</div> Installation
Install bits-ui:
Copy and paste the following code into your project.
Usage
<script lang="ts">
import { Switch } from "$lib/components/ui/switch/index.js";
</script> <Switch />