Global on_paste event listener
dentro-innovation opened this issue · 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.
Please assign this to me