Default Icons
Declarative Usage
Set an icon for a component with the icon attribute. Use the vaadin: and lumo: prefixes for different icon sets. If no prefix is present, the Vaadin set is used.
<icon icon="vaadin:user"/>
<icon icon="lumo:user"/>When set through the Studio component 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