Help

Copy to Clipboard similar to the Color Palette Block

820 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Lea_Marolt_Sonn
4 - Data Explorer
4 - Data Explorer

Hi!

I’m curious if anyone know how to implement a copy-to-clipboard in an Airtable Block that’s similar to how this Color Palette works, https://support.airtable.com/hc/en-us/articles/115013249087-Color-palette-block.

I’m hoping to make different lines of text clickable to facilitate fast copy & pasting of code snippets.

1 Reply 1
Mike_Pennisi
7 - App Architect
7 - App Architect

Clipboard integration doesn’t have to be tied to Airtable or Blocks; you can use the same approach as you would in a traditional web application. For most people, it makes sense to use a well-tested open-source package. Since Blocks are React applications, you might try react-copy-to-clipboard.