react-icons-materialdeprecated

MaterialUI Icons for react

Usage no npm install needed!

<script type="module">
  import reactIconsMaterial from 'https://cdn.skypack.dev/react-icons-material';
</script>

README

npm version npm license

react-icons-material

A slim implementation offering support for MaterialUI icons in React.

Installation

npm install --save react-icons-material

or

yarn add react-icons-material

PropTypes

Name Type Default
size number - string inherit
color string inherit
icon string none
theme enum (DEFAULT, OUTLINED, ROUNDED, TWO_TONE, SHARP) none

Usage

Example:

import React from 'react';
import MaterialIcon, { Themes } from 'react-icons-material';

class Example extends React.Component {
  render() {
    return (
      <div>
        <MaterialIcon
          theme={Themes.OUTLINED}
          size='36px'
          color='#369'
          icon='cached'
        />
      </div>
    )
  }
}

Icons

As this is a very slim wrapper around Material Icons, it should support any icons here.