Skip to main content
Dominik_Ilja
December 21, 2023
Solved

Generating SVG from SVG string within plugin

I have an icon library that exports SVG strings. Is there a way for me to paste the string into Figma through my plugin or would I have to manually build the graphic myself? If it’s the latter how would you recommend approaching this?

This topic has been closed for replies.
Gleb
GlebSolution
Power Member
December 21, 2023

3 replies

Gleb
GlebSolution
Power Member
December 21, 2023
Dominik_Ilja
December 21, 2023

Thank you so much! I can’t believe I missed that when I was going through the docs.

Dominik_Ilja
December 21, 2023

I took a look and found out that createNodeFromSVG isn’t in the documentation’s sidebar and that’s why I didn’t see it.

Here’s a screenshot for reference: