MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / CopyButtonProps

Interface CopyButtonProps

src/components/icons/CopyButton.tsx:9–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7import { Button, ButtonProps } from '@/components/ui/button'
8
9interface CopyButtonProps extends ButtonProps {
10 value: string
11 src?: string
12 event?: Event['name']
13}
14
15export async function copyToClipboardWithMeta(value: string, event?: Event) {
16 navigator.clipboard.writeText(value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected