Skip to main content
Solved

Generating SVG from SVG string within plugin

  • December 21, 2023
  • 3 replies
  • 472 views

Dominik_Ilja

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?

Best answer by Gleb

figma.com
This topic has been closed for replies.

3 replies

Gleb
  • Power Member
  • Answer
  • December 21, 2023

Dominik_Ilja

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


Dominik_Ilja

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: