gregberge/svgr ? reverse-engineered prompt
Reverse engineered prompt
Build me a tool that takes raw SVG files and turns them into clean React components.
I want to be able to run it from the command line or use it in a project, paste in an SVG, and get back a ready to use component that works nicely with React. It should clean up the SVG a bit, keep the important shapes and props, and make the output easy to customize, like changing colors and size from the component props.
If it makes sense, include support for using it with a build setup too, so SVG imports can become components automatically. Add a simple playground or example page where I can try different SVGs and see the generated result.
Make it polished, documented, and easy for someone to start using right away. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit