I’m excited to introduce you to
streamlit-paste-button, a new component that simplifies image pasting within your Streamlit applications. Say goodbye to the hassle of selecting files from your desktop; with this component, you can effortlessly paste images directly from your clipboard into your app.
This component enables users to paste images from their clipboard (using the browser clipboard API after user consent), streamlining the user experience significantly. No more navigating through directories or dealing with file selection dialogs—just copy an image, click the button, and voila! Your image appears in your Streamlit app.
I tested on Microsoft Edge v120 and Google Chrome v120 on Windows and it works in both. Unfortunately in my tests it doesn’t work on mobile browsers.
This is my first published component and my first post here in the community forum. If you have suggestions or questions feel free to drop your comments below. Thank you so much for reading