Copy to clipboard

Copy text or images to your clipboard

by @pixiebrix

How to Use

The Copy to Clipboard brick lets you copy text to your clip so you can manually paste it elsewhere. Text in the ‘text’ input field will be copied to your clipboard.

Examples

You can use this brick to save data when, for example:

  • You want the output of the previous brick to be copied to your clipboard
  • You want to save some data in your clipboard before passing it manually to a modal or other

Additional resources

https://en.wikipedia.org/wiki/Clipboard_(computing)


Inputs

Name Required Type Description
html string Optional: HTML content to copy to the clipboard for pasting into rich text editors. Ignored if provided content is not text.
text string, boolean, number The text or image content to copy to the clipboard
contentType multiple The type of content to copy to the clipboard, of 'infer' to detect automatically

Outputs

Name Required Type Description
No outputs for this brick defined.

Related Tags