0.0.13 • Published 4 months ago
@allbin/icons v0.0.13
AllBinary icon library
AllBinary Icon library where svg files are reprocessed into react components that take a className so it plays well with TailwindCSS.
Currently based on icons from:
Compile icons
To compile SVG files into React components, run the npm script build
> npm run get # get svg files and place them in ./input
> npm run compile # build react components from svg files
> npm run eslint:fix # reformat component files, this will take a while
> npm publish # publish the package to npmjs
Icon components will be placed in ./icons
Change icon source
In theory this will work with any directory of svg files as input, if we find a better source start by updating the
degit
command in the package.json
. The command form is degit <github user>/<repo>/<subdir>