1.0.0-beta.36 • Published 7 years ago

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

Weekly downloads
9,408
License
MIT
Repository
github
Last release
7 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-2138wex-admin@devbydylan/dbd-speech@blueeast/bluerain-plugin-bootstrap@prisma-cms/boilerplate@prisma-cms/front@prisma-cms/front-editor@prisma-cms/react-timeline-gantt@prisma-cms/uploader@prisma-cms/yley@prisma-cms/editorjorens-testlarini-react-scriptssreemancomponentsuidesignahtwilio-sync-inspector@airyrooms/apparel@charlietango/report@dhis2/d2-ui-favorites-menuyujluniversal-react-appup-material-ui-next-datepicker@gigster/pil@mree/mre-react-material-ui@nemo.travel/check-in@joincivil/editor@savvycodes/openstad-react-admin@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@pie-ui/pie-calculator@pie-libs/config-ui@pie-libs/editable-html@pie-libs/math-input@pie-libs/scoring-config@notadd/backend-mix@oyeharry/react-scripts-mrf@serlo-org/ory-editor-plugins-highlight@serlo-org/ory-editor-plugins-infoboxmui-datatables-searchable-components2moblee-iconsmessaging-modulemysqldoc-htmlopenstad-react-adminopenswarm-js-react-datatablepatient-portalsern-stackreact-calendar-2.0react-chat-gibi-chatreact-crmreact-cd-playerrssworkflowsreact-material-boiler-appreact-fire-chat-componentreact-material-ui-remote-tablereact-material-searchbarreact-material-ui-form-generatorreact-mail-feedbacksb-lp-frameworkreact-easy-feedbacknine36-uirjdrivigo-ui-commonsrestforreact-redux-hapi-fullstack-starterreact-star-rating-chartreact-static-example-material-uisite-headerreact-studyreact-slex-uigraphql-uileasot-reportmaterial-form-dialog-steppermaterial-ui-v1-paginationlocal-t2-assessment-suitekong-react-adminmaterial-ui-enhanced-fieldsmaterial-ui-extends@xandrev/gistblog@twilroad/backend-mix@zalastax/nolb-material-@yuniku/navigatoranywhere-componentsartin-dnaarchitect-components-libraryapollo-cmscomponupcomponent-creator-docscomponent-fourcomponent-onecomponent-threeclassmax-components
1.0.0-beta.36

7 years ago

1.0.0-beta.35

7 years ago

1.0.0-beta.17

8 years ago

1.0.0-beta.15

8 years ago

1.0.0-beta.14

8 years ago

1.0.0-beta.10

8 years ago

1.0.0-beta.5

8 years ago

1.0.0-beta.4

8 years ago

1.0.0-alpha.19

8 years ago

1.0.0-alpha.3

8 years ago

1.0.0-alpha.2

8 years ago

1.0.0-alpha.1

8 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago