A set of icons for use with iron-icon
Clone or download
Latest commit 8cc42e8 Sep 14, 2018
Permalink
Failed to load latest commit information.
.github Create CODEOWNERS Jan 24, 2018
demo Update demo script references. Jun 29, 2018
test format Jul 12, 2018
util Format project. Apr 10, 2018
.gitignore Tedium automated v3 element updates. Aug 16, 2018
.npmignore Tedium automated v3 element updates. Aug 16, 2018
.travis.yml Only generate types once on Travis Sep 7, 2018
CONTRIBUTING.md [skip ci] Update contribution guide May 17, 2016
README.md Remove redundant docs from `README.md`. Jul 17, 2018
av-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
bower.json Add `bower.json` so that webcomponents.org can read the repo. Sep 14, 2018
communication-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
device-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
editor-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
formatconfig.json Fix formatconfig.json Aug 8, 2018
gen-tsd.json Exclude index/test/demo from type generation. (#81) Mar 9, 2018
hardware-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
hero.svg updated element metadata May 26, 2015
image-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
iron-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
manifest.json Add delete entry for `index.html` in `manifest.json`. Jun 29, 2018
maps-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
notification-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
package-lock.json 3.0.1 Sep 14, 2018
package.json 3.0.1 Sep 14, 2018
places-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
social-icons.js Use `html` template tag instead of manually creating templates. Jul 17, 2018
wct.conf.json Update WCT config Jun 5, 2018

README.md

Published on NPM Build status Published on webcomponents.org

<iron-icons>

iron-icons is a utility import that includes the definition for the iron-icon element, iron-iconset-svg element, as well as an import for the default icon set.

See: Documentation, Demo.

Usage

Installation

npm install --save @polymer/iron-icons

In an HTML file

<html>
  <head>
    <script type="module">
      import '@polymer/iron-icon/iron-icon.js';
      import '@polymer/iron-icons/iron-icons.js';
    </script>
  </head>
  <body>
    <iron-icon icon="search"></iron-icon>
  </body>
</html>

In a Polymer 3 element

import {PolymerElement} from '@polymer/polymer/polymer-element.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';

import '@polymer/iron-icon/iron-icon.js';
import '@polymer/iron-icons/iron-icons.js';

class ExampleElement extends PolymerElement {
  static get template() {
    return html`
      <iron-icon icon="search"></iron-icon>
    `;
  }
}

customElements.define('example-element', ExampleElement);

Contributing

If you want to send a PR to this element, here are the instructions for running the tests and demo locally:

Installation

git clone https://github.com/PolymerElements/iron-icons
cd iron-icons
npm install
npm install -g polymer-cli

Running the demo locally

polymer serve --npm
open http://127.0.0.1:<port>/demo/

Running the tests

polymer test --npm