textWithCopy

open fun textWithCopy(text: String, copy: String): ComponentBuilder

Appends a text component that copies the given text to the clipboard when clicked.

Return

this component builder for chaining

Parameters

text

the text content to append

copy

the text to copy to the clipboard