Default Icons
There are two default icon sets: Vaadin and Lumo.
Declarative Usage
Set an icon for a component with the icon
attribute. Use the vaadin:
and lumo:
prefixes for different icon sets.
<icon icon="vaadin:user"/>
<icon icon="lumo:user"/>
When set through the inspector, the Choose Icon dialog appears, displaying icon names and preview for easier selection:

Programmatic Usage
An icon can be set programmatically to a component:
iconButton1.setIcon(VaadinIcon.USER.create());
iconButton2.setIcon(LumoIcon.USER.create());
Was this page helpful?
Thank you for your feedback