Directory

← Back

iron-icons

Provides an easy way to include Polymer iron-icons inside Vaadin applications

Author

Contributors

Rating

Polymer's icons definitions for Vaadin

Build Status

Provides an easy way to include Polymer iron-icons inside Vaadin applications.

Usage

  • Use your dependencies manager to include this library. Example with Maven:
<dependency>
    <groupId>nc.unc.vaadin.flow.polymer</groupId>
    <artifactId>iron-icons</artifactId>
    <version>${iron-icons.version}</version>
</dependency>
  • Each collection belongs on this own enumeration named by following pattern : Iron[Collection]Icons. For example, communication icons are defined in IronCommunicationIcons enumeration. The collection named 'icons' is defined in IronIcons enumeration.

  • To create an Vaadin Icon component, you must use the create method. Examples:

new Button("Save", IronIcons.SAVE.create());
new Span(IronSocialIcons.SCHOOL.create(), "Congratulations ! Your are graduated.");

Sample code

new Button("Save", IronIcons.SAVE.create());
new Span(IronSocialIcons.SCHOOL.create(), "Congratulations ! Your are graduated.");

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

  • New requirements : Java 11 & Vaadin 23+
  • Fix support of Vaadin 23+
Released
2022-03-28
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 23
Vaadin 10+ in 1.0.0
Browser
Browser Independent
Online