Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.88 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.88 KB

Google material design icons

Package to provide Google's material design icons for your Meteor app. Currently only the icon sprites are supported.

Usage

Example 1: use with angular material (ngMaterial)

The folder with all files of this package is available in the public url /packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/. Currently we only publish the svg-sprites. You can initialize the icons as following:

angular.module("MyApp")
  .config(themeIcons);

function themeIcons ($mdIconProvider) {

  $mdIconProvider
    .iconSet("social", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-social.svg")
    .iconSet("action", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-action.svg")
    .iconSet("communication", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-communication.svg")
    .iconSet("content", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-content.svg")
    .iconSet("toggle", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-toggle.svg")
    .iconSet("navigation", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-navigation.svg")
    .iconSet("image", "/packages/planettraining_material-design-icons/bower_components/material-design-icons/sprites/svg-sprite/svg-sprite-image.svg");

    // there are more icon sprites available, check out the material-design-icons page

};

Links