-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels