menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress!

Channels
Team

Creating Dynamic Component for more than one SVG

August 1, 2021 at 4:42pm

Creating Dynamic Component for more than one SVG

August 1, 2021 at 4:42pm
I have multiple SVG Component files created with SVGR I would like to define them using similar CSS codes. Can I use this in the form of <Icon({SvgRectangle}) /> or <Icon({SvgCircle}) /> etc..
Screenshot_2.jpgScreenshot_1.jpg
No messages yet