Skip to main content
Solved

Generating SVG from SVG string within plugin

  • December 21, 2023
  • 3 replies
  • 422 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
View original
This topic has been closed for comments

3 replies

Gleb
  • Power Member
  • 4707 replies
  • 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:


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings