Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
A control that allows the user to toggle between checked and not checked.
npx shadcn-svelte@next add switch
Install bits-ui
npm install bits-ui -D
Copy and paste the component source
<script lang="ts"> import { Switch } from "$lib/components/ui/switch/index.js"; </script>
<Switch />