MCPcopy Create free account
hub / github.com/arctic-cli/interface / handleCopy

Function handleCopy

packages/ui/src/components/text-field.tsx:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 const [copied, setCopied] = createSignal(false)
51
52 async function handleCopy() {
53 const value = local.value ?? local.defaultValue ?? ""
54 await navigator.clipboard.writeText(value)
55 setCopied(true)
56 setTimeout(() => setCopied(false), 2000)
57 }
58
59 return (
60 <Kobalte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected