Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
A two-state button that can be either on or off.
npx shadcn-svelte@next add toggle
Install bits-ui
npm install bits-ui -D
Copy and paste the component source
<script lang="ts"> import { Toggle } from "$lib/components/ui/toggle/index.js"; </script>
<Toggle>Toggle</Toggle>