Material Icons for Vaadin Flow 24.4.x.
Source on GitHub: materialicons-flow
It contains 1800+ icons, based on Vaadin Icon.
It integrates the materialicons web component (Javascript / Lit - version 3.0.2) and allows us to use it in Vaadin Flow (Java).
Add the materialicons-flow dependency to your pom.xml:
<dependency>
<groupId>org.vaadin.addons.gl0b3</groupId>
<artifactId>materialicons-flow</artifactId>
<version>3.0.1</version>
</dependency>Add the vaadin-addons repository to your pom.xml so Maven will be able to download the dependency:
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>Create a refresh MaterialIcon (it extends the VaadinIcon)
Icon refreshIcon = MaterialIcons.REFRESH.create();or inplace i.e. for button's icon:
Button refreshButton = new Button(MaterialIcons.REFRESH.create());- 1.x.x. - the version for Vaadin 14+
- 2.x.x. - the version for Vaadin 23
- 3.x.x. - the version for Vaadin 24
mainthe latest version for Vaadin 241.0.0the version for Vaadin 14+ (LTS)2.0.0the version for Vaadin 233.0.0the version for Vaadin 24.4
- Fork the
materialicons-flowrepository and clone it locally. - Build the project:
mvn clean install - Start the test/demo server:
mvn jetty:run- this not work properly, bugfix needed - Navigate to http://localhost:8080 to view the demo. - this not work properly, bugfix needed