Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -1,24 +1,22 @@
# material-ui-icons
This package provides the Google [Material icons](https://material.io/icons/) packaged as a set of [React](https://facebook.github.io/react/) components.
These components replace the `svg-icons` included in
0.x.x releases of [Material-UI](http://material-ui.com).
## Installation
Install the package in your project directory with:
```
npm i -S material-ui-icons
```sh
npm install --save material-ui-icons
```
These components use the Material-UI [SvgIcon](http://material-ui.com/#/style/icons) component to
These components use the Material-UI [SvgIcon](https://material-ui-next.com/api/svg-icon/) component to
render the SVG path for each icon, and so a have a peer-dependency on the `next` release of Material-UI.
If you are not already using Material-UI in your project, you can add it with:
```
npm i -S material-ui@next
```sh
npm install --save material-ui@next
```
## Usage
@@ -49,4 +47,4 @@ Note: Importing named exports in this way will result in the code for *every ico
If you are upgrading an existing project from Material-UI 0.x.x, you will need to revise the import paths
from `material-ui/svg-icons/<category>/<icon-name>` to `material-ui-icons/<IconName>`.
[Here](https://github.com/callemall/material-ui/tree/v1-beta/packages/material-ui-codemod#svg-icon-imports)'s a `jscodeshift` [codemod](https://github.com/facebook/codemod) to help you upgrade.
[Here](https://github.com/mui-org/material-ui/tree/v1-beta/packages/material-ui-codemod#svg-icon-imports)'s a `jscodeshift` [codemod](https://github.com/facebook/codemod) to help you upgrade.