Skip to main content
Question

How to get the icon's svg string via plugin API?

  • February 7, 2023
  • 2 replies
  • 403 views

Hi! everyone~ I want to get the icon’s svg string via plugin API, but I cant get implementation method from API Reference 。The svg string looks like this:

'<svg width="19" height="8" viewBox="0 0 19 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.333313" y="0.333313" width="18" height="7.33333" rx="1.33333" fill="black"/></svg>'
This topic has been closed for replies.

2 replies

  • Author
  • 2 replies
  • February 7, 2023

I know that I can get the svg string by following method。
But I should get it via figma plugin API 🤔
svg


  • Author
  • 2 replies
  • February 8, 2023

This work is very urgent, hope to get your help, thank you very much!! ✨


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