On/off toggle. Animated transition.
Sliding toggle for boolean settings. Brand-color track when on. Spring-eased transition (260ms).
import { Switch } from "@/components/ui/switch";
<Switch checked={on} onCheckedChange={setOn} />components/ui/ folder. You own the code.