Blame view

bower_components/iron-icon/README.md 1.42 KB
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  iron-icon
  =========
  
  The `iron-icon` element displays an icon. By default an icon renders as a 24px square.
  
  Example using src:
  
  ```html
  <iron-icon src="star.png"></iron-icon>
  ```
  
  Example setting size to 32px x 32px:
  
  ```html
  <iron-icon class="big" src="big_star.png"></iron-icon>
  
  <style>
    .big {
      height: 32px;
      width: 32px;
    }
  </style>
  ```
  
  The iron elements include several sets of icons.
  To use the default set of icons, import  `iron-icons.html` and use the `icon` attribute to specify an icon:
  
  ```html
  <!-- import default iconset and iron-icon -->
  <link rel="import" href="/components/iron-icons/iron-icons.html">
  
  <iron-icon icon="menu"></iron-icon>
  ```
  
  To use a different built-in set of icons, import  `iron-icons/<iconset>-icons.html`, and
  specify the icon as `<iconset>:<icon>`. For example:
  
  ```html
  <!-- import communication iconset and iron-icon -->
  <link rel="import" href="/components/iron-icons/communication-icons.html">
  
  <iron-icon icon="communication:email"></iron-icon>
  ```
  
  You can also create custom icon sets of bitmap or SVG icons.
  
  Example of using an icon named `cherry` from a custom iconset with the ID `fruit`:
  
  ```html
  <iron-icon icon="fruit:cherry"></iron-icon>
  ```
  
  See [iron-iconset](#iron-iconset) and [iron-iconset-svg](#iron-iconset-svg) for more information about
  how to create a custom iconset.
  
  See [iron-icons](http://www.polymer-project.org/components/iron-icons/demo.html) for the default set of icons.