A helper class to manage requesting clipboard permissions and provide common functionality for working with the clipboard.

Methods

  • Copies plain text to the clipboard in a cross-browser compatible way.

    Parameters

    • text: string

      The text to copy.

    Returns Promise<void>