<vaadin-icon>
<vaadin-icon> is a Web Component for creating SVG icons, part of the Vaadin components.
<vaadin-icon name="vaadin:user"></vaadin-icon>
Installation
Install vaadin-icon
:
npm i @vaadin/vaadin-icon --save
Once installed, import it in your application:
import '@vaadin/vaadin-icon/vaadin-icon.js';
Getting started
Vaadin components use the Lumo theme by default.
To use the Material theme, import the corresponding file from the theme/material
folder.
Entry points
-
The component with the Lumo theme:
theme/lumo/vaadin-icon.js
-
The component with the Material theme:
theme/material/vaadin-icon.js
-
Alias for theme/lumo/vaadin-icon.js
:
vaadin-icon.js
Big Thanks
Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.
Contributing
To contribute to the component, please read the guideline first.
License
Apache License 2.0
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.