0.5.7 • Published 8 years ago

react-mdi v0.5.7

Weekly downloads
96
License
MIT
Repository
github
Last release
8 years ago

react-mdi

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

Usage

import React from 'react';

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

export default class Account extends React.Component {
  render() {
    return (
      <AccountIcon size={16} className="myClassName" />
    );
  }
}

Props

PropDefault valueUsage
size24Used to set the heightand width in the style attribute
classNamenullUsed to apply a css class to the component and properly style it

Build

npm run build