How to set Unit.PIXELS for components in vaadin 14

How to set Unit.PIXELS for components in vaadin 14

You need to specify a String value. For example, textField.setHeight("200px");