A toggle for settings that apply immediately.
Copy the command below and run it in your terminal.
bunx @sivir/ui add switch
pnpm dlx @sivir/ui add switch
npx @sivir/ui add switch
yarn dlx @sivir/ui 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.