Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 571 Bytes

File metadata and controls

29 lines (21 loc) · 571 Bytes

React Material Icon

A React wrapper for Material Icons.

Installation

npm install @material/react-material-icon

Usage

import MaterialIcon from '@material/react-material-icon';

const MyComponent = () => {
  return (
    <MaterialIcon icon='menu' />
  );
}

Props

Prop Name Type Description
icon string Type of icon to be displayed.
className string Classes to pass on to the root <i> element.
hasRipple n/a If present on element, it will enable the ripple on the icon.