MCPcopy Index your code
hub / github.com/SyntaxUI/syntaxui / copyToClipboardWithMeta

Function copyToClipboardWithMeta

src/components/icons/CopyButton.tsx:15–20  ·  view source on GitHub ↗
(value: string, event?: Event)

Source from the content-addressed store, hash-verified

13}
14
15export async function copyToClipboardWithMeta(value: string, event?: Event) {
16 navigator.clipboard.writeText(value)
17 if (event) {
18 trackEvent(event)
19 }
20}
21
22export function CopyButton({
23 value,

Callers 1

CopyButtonFunction · 0.85

Calls 1

trackEventFunction · 0.90

Tested by

no test coverage detected