1.0.0-beta.36 • Published 6 years ago

material-ui-icons v1.0.0-beta.36

Weekly downloads
9,408
License
MIT
Repository
github
Last release
6 years ago

material-ui-icons

This package provides the Google Material icons packaged as a set of React components.

Installation

Install the package in your project directory with:

npm install --save material-ui-icons

These components use the Material-UI SvgIcon 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 install --save material-ui@next

Usage

The import path for each Material icon component includes the icon name in PascalCase.

For example to use the 'access alarm' icon component, import material-ui-icons/AccessAlarm.

Note: One exception is '3d rotation', which is named ThreeDRotation.

Examples

  • If your environment doesn't support tree-shaking, the recommended way to import the icons is the following:
import AccessAlarmIcon from 'material-ui-icons/AccessAlarm';
import ThreeDRotation from 'material-ui-icons/ThreeDRotation';
  • If your environment support tree-shaking you can also import the icons that way:
import { AccessAlarm, ThreeDRotation } from 'material-ui-icons';

Note: Importing named exports in this way will result in the code for every icon being included in your project, so is not recommended unless you configure tree-shaking.

Upgrading

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's a jscodeshift codemod to help you upgrade.

cboardtaraxa-uixiv-react-sdkpeer-genius-clientstaart-test@everything-registry/sub-chunk-2138jorens-testlarini-react-scriptsgraphql-uileasot-reportkong-react-adminlocal-t2-assessment-suitematerial-form-dialog-steppermaterial-ui-v1-paginationmaterial-ui-enhanced-fieldsmaterial-ui-extends@charlietango/report@blueeast/bluerain-plugin-bootstrap@dhis2/d2-ui-favorites-menu@devbydylan/dbd-speech@gigster/pil@joincivil/editorelectraeoes2k-react-componentses2xfeedbackform-testelewis-ui-commonfareeda-libraryemg-tools-commonft-frontend-kitft-frontend-libopenstad-react-adminopenswarm-js-react-datatablepatient-portalnine36-uimysqldoc-htmlmui-datatables-searchable-components2messaging-modulemoblee-iconsreact-easy-feedbackreact-fire-chat-componentreact-calendar-2.0react-cd-playerreact-chat-gibi-chatreact-crmreact-material-boiler-appreact-material-searchbarreact-material-ui-form-generatorreact-material-ui-remote-tablereact-mail-feedbackreact-slex-uisb-lp-frameworksern-stackrjdrssworkflowsreact-redux-hapi-fullstack-starterreact-star-rating-chartreact-studyreact-static-example-material-uirestforrivigo-ui-commonsuidesignahuniversal-react-appsreemancomponentstwilio-sync-inspectorsite-headerwex-adminup-material-ui-next-datepickeryujl@airyrooms/apparel@savvycodes/openstad-react-admin@serlo-org/ory-editor-plugins-highlight@serlo-org/ory-editor-plugins-infobox@notadd/backend-mix@oyeharry/react-scripts-mrf@pie-libs/config-ui@pie-libs/editable-html@pie-libs/math-input@pie-libs/scoring-config@prisma-cms/boilerplate@prisma-cms/uploader@prisma-cms/yley@prisma-cms/front@prisma-cms/front-editor@prisma-cms/editor@prisma-cms/react-timeline-gantt@pie-ui/pie-calculator@pie-elements/inline-choice@pie-elements/inline-choice-element@pie-elements/multiple-choice@pie-elements/multiple-choice-element@pie-elements/text-entry@pie-elements/text-entry-element@mree/mre-react-material-ui@nemo.travel/check-inapollo-cmsanywhere-componentsartin-dnaarchitect-components-library@yuniku/navigator
1.0.0-beta.36

6 years ago

1.0.0-beta.35

6 years ago

1.0.0-beta.17

7 years ago

1.0.0-beta.15

7 years ago

1.0.0-beta.14

7 years ago

1.0.0-beta.10

7 years ago

1.0.0-beta.5

7 years ago

1.0.0-beta.4

7 years ago

1.0.0-alpha.19

7 years ago

1.0.0-alpha.3

7 years ago

1.0.0-alpha.2

7 years ago

1.0.0-alpha.1

7 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago