Copy to Clipboard

Hello everyone,

we are currently migrating our application to your latest LTS Vaadin 14 and struggle with the migration of [JSClipBoard 1.0.3]
(https://vaadin.com/directory/component/jsclipboard-add-on/1.0.3). The newest version (1.0.12) does not support vaadin flow and there seems to be no vaadin component available for this task.

We basically need the functionality to copy the string value of a given component (or even just a backend java field) to the user’s clipboard. Is there an easy way to accomplish this?

Extending the vaadin-button with javascript would be preferable.

Thanks in advance,
Eric