Skip to content

Transforms SVG files into React components, in bulk. Create multiple files or a single file with multiple exports.

License

Notifications You must be signed in to change notification settings

iPzard/svg-to-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG to React

Build License

Convert multiple SVG files into React (.js) files. Place your SVGs in the root-level svg/ directory, and run one of the scripts listed below to process your batch.


📜 Scripts

The single file script will create a single ./output/single/icons.js file with each SVG available as an export. The multiple file script will create individual files/components for each SVG in an ./output/single/<filename> file. The multiple file script will also convert filenames which use dashes to PascalCase.

Single file:

yarn run start:single

multiple files:

yarn run start:multiple

🦟 Bugs

Bugs reported on the project's issues page will be exterminated as quickly as possible, be sure to include steps to reproduce so they can be spotted easily.

License

MIT © SVG to React

About

Transforms SVG files into React components, in bulk. Create multiple files or a single file with multiple exports.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project