Vaadin 11 client validation example

Hi,
can somebody give me an example of Vaadin 11 client validation code?
I’m not very expert of polymer and js and I need to validate form before submit.

In my scenario I have a form and a button that I mapped to java Button using @id attribute.
I need to validate (required fields for example) fields before send data to my java code.

Thanks
Gianluca