Dev Design Library

Morphing Button

Shrinks into a spinner while it saves, then answers with a check or a shake.

Morphing Button preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/morphing-button.json
Files
  • src/lab/components/morphing-button.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab