Simple extension to bind CSS Media query in Java, help to build responsive UI
Add CustomMediaQuery in your view with a action and a Media query. When the result of the CSS media query result changed, call the action. This helps to build responsive UI from the Java side. For example, you can show a component only if the width of the view is less than 800px.
Display or hide a column for a Vaadin Grid if screen size < 1000px
Use ClientMediaQuery to update your styles from Java.
You can find an example in github.