A toggle for settings that apply immediately.
Copy the command below and run it in your terminal.
bunx @sivir-ui/svelte add switch
pnpm dlx @sivir-ui/svelte add switch
npx @sivir-ui/svelte add switch
yarn dlx @sivir-ui/svelte add switch
Import Switch and bind its state:
import { Switch } from '$lib/sivir/components/switch'; <Switch bind:switched={enabled} label="Notifications" />
Switch in different states and compositions.
Switch - Toggles a boolean value.
Switch