writeText

abstract external fun writeText(text: String): Promise<Void>(source)

A promise that resolves once the text has been written to the clipboard. Modeled after the W3C navigator.clipboard.writeText API.