A React wrapper for Material Icons.
npm install @material/react-material-icon
import MaterialIcon from '@material/react-material-icon';
const MyComponent = () => {
return (
<MaterialIcon icon='menu' />
);
}
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. |