guillermolg00/morphicons ? reverse-engineered prompt
Reverse engineered prompt
Build me a tiny icon morphing library that lets any stroke based icon smoothly turn into any other icon with springy motion.
I want it to work in React first, but also have support for Vue, Svelte, React Native, and a simple custom element if that fits the project. The main thing should be a MorphIcon component that takes icon data, not icon components, and just animates when the icon prop changes. It should also support a controlled progress mode and an imperative ref mode for cases like dragging or sequencing.
Please make the icons render correctly on the server too, keep accessibility sensible by default, and let normal SVG props like size, color, and stroke width pass through. It should feel like a drop in replacement for regular icon usage, but with no extra setup. If needed, look up current docs online for the framework details and make the demo playground and website look polished so people can try the morphs right away.
Are you gonna build this?
make sure you review the code using coderabbit