React Hookers - v6.3.0
    Preparing search index...

    Function writeToClipboard

    • Copies text to the clipboard.

      Note: This only works within the scope of a keyboard or mouse event handler. Otherwise, it is a no-op.

      Parameters

      • text: string

        The text to write to the clipboard.

      Returns boolean

      true if the text was successfully written; otherwise, false.