Material Design Icons SVG
This package provides React Components and SVG files for Material Icons, including all five themes.
npm install material-icons-svg
As a React Component
;const User =<div>/* React Components also support passing props to the SVG element. */<span><AccountCircle fill="#ececec" />username</span></div>;
As an SVG file
;const User =<div><span><img src=accountCircle />username</span></div>;
The SVG files stored in the
icons folder can be downloaded by running the included
download.go file with
go run download.go. These files should be kept in version control in order to easily track changes.
After downloading the original SVG files,
npm run build will run the build process. The SVG files will be converted to TypeScript React components with
svgr and stored in a