reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Add CopyToClipboard Component

Open heumsi opened this issue 1 year ago β€’ 2 comments

I found out about the existence of CopyToClipboard through the issue below.

https://github.com/pynecone-io/pynecone/issues/372

I want to use the CopyToClipboard component, but nowhere in the official documentation does it cover how to use it.

Could you please add this component usage to the documentation?

heumsi avatar Mar 11 '23 06:03 heumsi

Fortunately, I found the usage through the code.

pc.copy_to_clipboard(
    pc.icon(tag="copy",),
    text="This text will be copied!"
)

Maybe you can contribute to my documentation? If I can contribute, do you have any documentation that I can refer to?

heumsi avatar Mar 11 '23 06:03 heumsi

It's not builtin to the core library yet - but this would definitely be good to have. All the docs are in the pcweb repo - see here.

picklelo avatar Mar 11 '23 22:03 picklelo

Since we have the event rx.copy_to_clipboard I believe we can close this.

Lendemor avatar Aug 21 '23 12:08 Lendemor