https://github.com/morlay/svg2jsx
https://github.com/morlay/svg2jsx
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/morlay/svg2jsx
- Owner: morlay
- Created: 2016-02-19T08:57:55.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T11:30:13.000Z (almost 10 years ago)
- Last Synced: 2025-02-10T19:54:22.968Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## svg2jsx
transform svg to jsx constants elements.
[](https://travis-ci.org/morlay/svg2jsx)
[](https://npmjs.org/package/svg2jsx)
[](https://david-dm.org/morlay/svg2jsx)
[](https://npmjs.org/package/svg2jsx)
see more in examples, default use in webpack.
### Options
#### `pragma`
same as
#### `jsxWrapper(jsxString)`
wrapper of jsx string, must be result a `string`
#### `svgProcessor($svgElm, $)`
processor for svgElm, `$` is an instance of
must remove or transform attrs like `xmlns:xlink` in xml