Skip to main content
Feb 7, 2023 7:20 AM UTC
Question

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

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

mokachenAuthor
Feb 7, 2023 7:24 AM UTC

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

mokachenAuthor
Feb 8, 2023 9:34 AM UTC

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