Back to Registry
Toggle Switch
inputSpring-animated toggle with icon morph transitions.
Colorblue-500
Width
Shadow
Live Preview
Light mode
Install via CLI
npx shadcn@latest add https://kinetik.dev/r/toggle-switch.jsonRequires shadcn CLI. Auto-installs deps and copies the component into your project.
Manual Install
npm add framer-motion lucide-reactThen copy the source code below into your project.
Usage
import { ToggleSwitch } from '@/app/components/toggle-switch';Source
'use client';
export function ToggleSwitch() {
// copy from registry component source
}Dependencies
framer-motionlucide-react