3 ms·
I have been just recently been getting into creating React SVG components that pass props to the inlined SVG code. It’s pretty cool what you can do dynamically
by hoofhearted 4y ago
I have been just recently been getting into creating React SVG components that pass props to the inlined SVG code.
It’s pretty cool what you can do dynamically. I have been playing with dynamic css inside of the SVG, but animations are my next step.
- sirspacey 4y agoWould love to see this, that sounds really cool!
- hoofhearted 4y agoI’m currently building out Wordpress for developers. Our logo in an upcoming release uses inlined SVG, and it’s taking a class name property to change the text color dynamically. https://github.com/elegantframework/elegant/blob/v2.0-alpha/source/elegant-docs/src/components/Logo/Logo.tsx https://github.com/elegantframework/elegant/blob/v2.0-alpha/...