Copy to Clipboard with Phoenix LiveView

Jason Stiebs shows a couple ways for a LiveView to make it easy for users to click and copy an important value to their clipboard. He shows two handy JS approaches that make it nicely reusable in an app!

2 Likes

Corresponding tweet for this thread:

Share link for this tweet.

2 Likes

A very clean way to implement copy to clipboard, thanks!

3 Likes

I have needed this and just put off building it. Thanks so much for sharing!

3 Likes