🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

st-copy-button

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

st-copy-button

A simple Streamlit component for copying text to the user's clipboard with one click.

0.0.14
PyPI
Maintainers
1

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
)

Keywords

streamlit

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