Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 791 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 791 Bytes

react-material-icons

Using this lib

npm install @esmalley/react-material-icons
import Abc from '@esmalley/react-material-icons/Abc';

return (
    <>
    <Abc />
    </>
);

Pass standard dom props

import Abc from '@esmalley/react-material-icons/Abc';

return (
    <>
    <Abc style = {{ fontSize: 30, color: 'red', margin: 5 }} onClick = {() => console.log('hi')} />
    </>
)

Working on this lib

npm run build

This will run bash build.sh, do a bunch of clean up then node build.mjs

build.sh

This file will copy the svg icons from @material-design-icons/svg. Create the react icon tsx wrapper, then create them all as react components, rename, etc.

Publish to npm

git tag v3.2.1
git push origin v3.2.1