A simple Streamlit component for copying text to the user's clipboard with one click.
Project description
st-copy-button
A simple Streamlit component for copying text to the user's clipboard with one click.
Contains portions derived from mmz-001's st-copy-to-clipboard component.
Installation instructions
pip install st-copy-button
Usage instructions
Note: The clipboard API is only available in secure contexts (HTTPS)
import streamlit as st
from st_copy_button import st_copy_button
# Basic usage
st_copy_button("Copy this to clipboard")
# With custom labels
st_copy_button(
text="Custom text",
before_copy_label="📋 Push to copy",
after_copy_label="✅ Text copied!",
show_text=True
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
st_copy_button-0.0.7.tar.gz
(224.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters