Metadata-Version: 2.1
Name: st_txt_copybutton
Version: 0.0.1
Summary: Streamlit component that allows you to create button to paste image from clipboard.
Home-page: 
Author: tsuzukia
Author-email: 
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: streamlit>=0.63
Provides-Extra: devel
Requires-Dist: wheel; extra == "devel"
Requires-Dist: pytest==7.4.0; extra == "devel"
Requires-Dist: playwright==1.39.0; extra == "devel"
Requires-Dist: requests==2.31.0; extra == "devel"
Requires-Dist: pytest-playwright-snapshot==1.0; extra == "devel"
Requires-Dist: pytest-rerunfailures==12.0; extra == "devel"

# 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

```sh
pip install st_txt_copybutton
```

or

```sh
pip install st_txt_copybutton --upgrade
```


## Usage instructions

```python
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
```python
streamlt run examle.py
```
