Socket
Socket
Sign inDemoInstall

@figma-export/output-components-as-svgr

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/output-components-as-svgr

Outputter for @figma-export that exports components as React components using svgr


Version published
Maintainers
1
Created
Source

@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/

# output
# β”œβ”€β”€ icons
# β”‚   β”œβ”€β”€ FigmaArrow.jsx
# β”‚   β”œβ”€β”€ FigmaExport.jsx
# β”‚   β”œβ”€β”€ FigmaLogo.jsx
# β”‚   └── index.js
# β”œβ”€β”€ monochrome
# β”‚   β”œβ”€β”€ FigmaBlue.jsx
# β”‚   β”œβ”€β”€ FigmaGreen.jsx
# β”‚   β”œβ”€β”€ FigmaPurple.jsx
# β”‚   β”œβ”€β”€ FigmaRed.jsx
# β”‚   └── index.js
# └── unit-test
#     β”œβ”€β”€ figma
#     β”‚   β”œβ”€β”€ logo
#     β”‚   β”‚   β”œβ”€β”€ Main.jsx
#     β”‚   β”‚   β”œβ”€β”€ MainBright.jsx
#     β”‚   β”‚   └── index.js
#     β”‚   β”œβ”€β”€ Logo.jsx
#     β”‚   └── index.js
#     β”œβ”€β”€ FigmaDefaultLogo.jsx
#     └── index.js

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

FAQs

Package last updated on 20 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc