Copy to Clipboard similar to the Color Palette Block

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.