https://github.com/konsumer/inkscape-react
Cross-platform Inkscape plugin to output a React JSX file from SVG
https://github.com/konsumer/inkscape-react
Last synced: over 1 year ago
JSON representation
Cross-platform Inkscape plugin to output a React JSX file from SVG
- Host: GitHub
- URL: https://github.com/konsumer/inkscape-react
- Owner: konsumer
- Created: 2017-08-17T19:16:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T03:17:38.000Z (over 8 years ago)
- Last Synced: 2025-03-17T03:04:58.911Z (over 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# inkscape-react
This will allow you to output React components from inkscape.
## installation
Run `npm i -g inkscape-react`
Then copy `inkscape-react.inx` to your extensions directory (`$HOME/.config/inkscape/extensions`.)
After this, find the option "React Component (*.jsx)" under "Save As" in "File."
## example
This:

gets turned into [this](https://codepen.io/konsumer/pen/JyMQjx):
```jsx
import React from 'react'
export const GhostscriptTiger = () => (
)
export default GhostscriptTiger
```