Skip to content
This repository has been archived by the owner on Feb 21, 2025. It is now read-only.

mmz-001/st-copy-to-clipboard

Repository files navigation

st-copy-to-clipboard

Streamlit component that allows you to copy text to clipboard.

Installation instructions

pip install st-copy-to-clipboard

Usage instructions

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")