Toggle Switch
Leans into the move when pressed, then springs across and squashes on landing.

- Library
- UI Lab
- Framework
- React
- Type
- component
- License
- MIT
- Install
npx shadcn@latest add https://lab.xevrion.dev/r/toggle-switch.json- Files
src/lab/components/toggle-switch.tsxsrc/lib/use-reduced-motion.tssrc/lib/cn.ts
- Source
- https://github.com/xevrion/ui-lab
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