Closed jmak closed 3 years ago
Hi!
Given that you set "syncElements": true
in the config (or use --syncElements
) you should be getting a result similar to the attached image.
Hi @jmak,
I will be closing this since this should be able to be corrected as per above. I will look into updating docs to clarify!
@mikaelvesavuori Thanks for your explanation.
Describe the bug Reading documentation I have an impression that outputting graphics (elements that are placed on Graphics page in Figma file) as wrapped react elements is build into the Figmagic library. I manage only to export everything as svgs. I tried to use custom template but with no success.
My config
"figmagic": "^4.0.15"
When I run:
"figmagic:graphics": "node ./node_modules/figmagic/build/index.js --syncGraphics"
I get only svg files.When I run
"figmagic:sync": "node ./node_modules/figmagic/build/index.js --syncElements --syncGraphics"
I get one element that I have in Elements page but I don't get wrapped React elements for svg filesExpected behavior SVG icons placed on Graphics page in Figma are exported as React components
Desktop (please complete the following information):