Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

st-txt-copybutton

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

st-txt-copybutton

Streamlit component that allows you to create button to paste image from clipboard.

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

streamlit-custom-component

Streamlit component that allows you to create button to paste image from clipboard.

confirmed that it works with chrome,safari,edge. it doesn't work with firefox

Installation instructions

pip install st_txt_copybutton

or

pip install st_txt_copybutton --upgrade

Usage instructions

import streamlit as st
from st_txt_copybutton import txt_copy

st.header("Example of Text Clipboard")
st.write("Enter text in the text area below and click the button to copy it to the clipboard.")

# Text area for text input
text_to_copy = st.text_area("Text to copy", "Enter text here", height=100)

# Copy button
copy_result = txt_copy(label="Copy to clipboard", text_to_copy=text_to_copy, key="text_clipboard")

if copy_result:
    st.success(f"{copy_result}")
else:
    st.info("Click the button to copy the text.")

run

streamlt run examle.py

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc