1.0.0 • Published 7 years ago

react-mdi-props v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

react-mdi-props

It's a fork from react-mdi with realized pass props.

Material-UI community Material Design Icons.

Community Material Design Icons as svg react components, built with icon-builder from Material-UI.

Special thanks to Austin Andrews for managing Material Design Icons.

Installation

npm install react-mdi-props

Usage

import React from 'react';

import AccountIcon from 'react-mdi-props/icons/account';

export default class Account extends React.Component {
  onClick = () => { console.log('Click!'); };
  render() {
    const color = '#fff';
    return (
      <AccountIcon
        className="myClassName"
        fill={color}
        size={16}
        onClick={this.onClick}
      />
    );
  }
}

Props

Icon component can get any props.

Build

npm run build