How to style component in Vaadin 10 using theme

Hi, in Vaadin 8 you could style component e.g. Button by adding style and using ValoTheme static final property.

Button viewBtn = new Button("Detail", VaadinIcons.EYE);

How can you achieve this in Vaadin 10?

These were added in v11 (Flow 1.1). You can read the documentation here: