Why these icons don't inherit the Vaadin's Icon? For example in this code I

Why these icons don’t inherit the Vaadin’s Icon?
For example in this code I have compile error on the second and third lines:

FontAwesome icon = ontAwesome.Solid.DATABASE.create()
icon.setClassName("drawer-menu-icon");
icon.getElement().setProperty("title", description);

How can I cast FontAwesome to VaadinIcon?

Hello,

> How can I cast FontAwesome to VaadinIcon?

You can assign them to IronIcon or FontAwesome.Solid.Icon:

IronIcon icon = FontAwesome.Solid.DATABASE.create()
icon.setClassName("drawer-menu-icon");
icon.getElement().setProperty("title", description);

(Had it not been because of setClassName, which is defined in HasStyle, even Component would have worked)

> Why these icons don’t inherit the Vaadin’s Icon?

The icons from this addon extend IronIcon instead of Icon because the latter imports the vaadin-icons iconset, which is not required in this case (see https://github.com/vaadin/vaadin-icons-flow/issues/56).
However, we are considering refactoring the component after Vaadin 18 is released (https://github.com/FlowingCode/FontAwesomeIronIconset/issues/6)