Animated Switch
An interactive iOS-style squish switch built on Base UI Switch primitives, with interruptible press feedback and a shared feedback spring.

- Library
- Sona UI
- Framework
- React
- Type
- ui
- License
- MIT
- Dependencies
- @base-ui/react, motion
- Install
npx shadcn@latest add @sona-ui/animated-switch- Files
src/registry/sonaui/animated-switch/animated-switch.tsxsrc/registry/sonaui/sona-utils/sona-utils.tssrc/registry/sonaui/sona-motion/sona-motion.tssrc/lib/sona-motion.tssrc/lib/sona-utils.ts
- Source
- https://github.com/Dinil-Thilakarathne/sona-ui
Categories
- Input Components
- React Input Components
- Tailwind CSS Input Components
- Animated Input Components
- Switch Components
- React Switch Components
- Tailwind CSS Switch Components
- Animated Switch Components