An open API service indexing awesome lists of open source software.

https://github.com/joduplessis/react-icon-generate

Bash script toolkit for generating React components from SVG files (in bulk).
https://github.com/joduplessis/react-icon-generate

bash javascript react svg

Last synced: 27 days ago
JSON representation

Bash script toolkit for generating React components from SVG files (in bulk).

Awesome Lists containing this project

README

        

# Icon Generation toolkit

Script toolkit to convert SVG files to React components in bulk. All of this **SVGR** can do out of the box - but this is the workflow that I've used to speed things up.

## How to use

- `npm i -g svgr/[email protected]` or `npx i svgr/[email protected]`
- Go and download the excellent [Remix Icon](https://remixicon.com/) icon set
- Unzip the folder containing the SVG files (and sub folders) to `remix`
- Run `./convert ./remix ./components`

If you want to rename the generated files in bulk, I published a gist [here](https://gist.github.com/joduplessis/72cbd33619e8596aae7fc9efdaf13b25).