Replies: 2 comments 2 replies
-
|
Thanks for the kind words, @kfayelun! I don't know for sure whether For example: This will emit a single component file to |
Beta Was this translation helpful? Give feedback.
-
|
If you would rather keep your SVGR workflow and are OK with doing some runtime stuff, you could write a custom wrapper that "merges" your 6 generated icons per weight into a single component: ... then set up each merged component like so: Note that I used the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi phosphorians 👋
Great library you've built here, thanks so much for providing this to us all, open source! We love using your icons and would love to get the same usability out of the small set of custom icons that we have. So when we saw the custom icons section here in the readme we wanted to give it a try.
Currently we're fetching the custom icons from Figma with the Figma API, and using
svgr/clito make them into react components. But now I want to get these over on the same form as the phosphor ones, where all the weights are in the same file as described in your docs. Assvgrloops through the svgs and runs a transformation per file, I don't quite see how I can get the different weights into the same file.Maybe my googling skills have failed me, but I couldn't find any examples or articles on this. This might rather belong under the
svgrlibrary, but guessing others who use phosphor often also usesvgrand have tried this before me?Hope so 🤞
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions