reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Global on_paste event listener

Open dentroai opened this issue 1 year ago β€’ 1 comments

Describe the Custom Component

  • What is the purpose of the custom component? Event handler that's called when anything is pasted in, e.g. text or files

  • What is the expected behavior of the custom component? Handle data that's pasted in via the user clipboard

  • What are the use cases for the custom component? Allow users to paste files to upload directly without having to open a file explorer. E.g. I make a screenshot, save it to my clipboard and then wanna paste it in the reflex app

Specifics (please complete the following information):

  • Do you have a specific react package in mind? (Optional): No

Additional context The idea comes from the functionality on ChatGPT UI, where images can be pasted in to be used for Vision LLMs.

dentroai avatar Apr 09 '24 20:04 dentroai

Please assign this to me

wassafshahzad avatar Apr 11 '24 04:04 wassafshahzad