Skip to content

chore: improve SVG management and add a Icon component #5

@gabrieleAngius

Description

@gabrieleAngius

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions