Streamlit component that allows you to copy text to clipboard.
pip install st-copy-to-clipboard
Note: The clipboard API is only available in secure contexts (HTTPS)
import streamlit as st
from st_copy_to_clipboard import st_copy_to_clipboard
# Render copy to clipboard button
st_copy_to_clipboard("Copy this to clipboard")