@allbin/icons
v0.0.13
Published
Based on Iconoir svg icons, reprocessed into react components that play well with TailwindCSS
Downloads
52
Readme
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>