Back to Registry

Toggle Switch

input

Spring-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.json

Requires shadcn CLI. Auto-installs deps and copies the component into your project.

Manual Install
npm add framer-motion lucide-react

Then 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