You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The SVG component exposed by figma widget accept a src prop which should contain an svg string of the form "<svg .... />".
I don't really like passing it directly as a string
Describe the solution you'd like
If possible I'd prefer to import a .svg file and use it a src (need to investigate if it's possible to do it using a svg loader or similar)
Would be also nice to set up a Icon component which takes a name prop and render the related SVG
Describe alternatives you've considered
If is not possible or too tricky to set up a svg loader as proposed above, a simpler solution is to save all svg strings in a map object
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The SVG component exposed by figma widget accept a
src
prop which should contain an svg string of the form "<svg .... />".I don't really like passing it directly as a string
Describe the solution you'd like
If possible I'd prefer to import a
.svg
file and use it a src (need to investigate if it's possible to do it using a svg loader or similar)Would be also nice to set up a
Icon
component which takes aname
prop and render the related SVGDescribe alternatives you've considered
If is not possible or too tricky to set up a svg loader as proposed above, a simpler solution is to save all svg strings in a map object
The text was updated successfully, but these errors were encountered: