mesop-prompt-tuner / web_components /copy_to_clipboard /copy_to_clipboard_component.py
Richard
Minor improvements
a43df2a
raw
history blame contribute delete
308 Bytes
import mesop.labs as mel
@mel.web_component(path="./copy_to_clipboard_component.js")
def copy_to_clipboard_component(
*,
text: str = "",
key: str | None = None,
):
return mel.insert_web_component(
name="copy-to-clipboard-component",
key=key,
properties={
"text": text,
},
)