@figma-export/output-components-as-svgr
Outputter for @figma-export that exports components as React components.
With this outputter you can export all Figma components as React components into the specified output folder.
This is a sample of the output from this Figma file:
$ tree output/
Tip: A figma component named icon/eye
will be exported as Eye.jsx
inside the icon
folder. Another index.js
file will be created inside the icon
folder and this will export directly the Eye
component.
Install
Using npm:
npm install --save-dev @figma-export/output-components-as-svgr
or using yarn:
yarn add @figma-export/output-components-as-svgr --dev