Skip to main content

CopyToClipboard

Components

CopyToClipboard()

CopyToClipboard(props, context?): ReactNode

A CopyToClipboard component serves a specific purpose: display a tooltip on hover to explain to the user the purpose of the component and copy the content of component to the Clipboard. The user can then paste the copied content elsewhere. The copied content remains in memory until the user copies something else.

Parameters

ParameterType
propsCopyToClipboardProps
context?any

Returns

ReactNode

Source

libs/design-system-core/src/components/CopyToClipboard/index.tsx:27

Props

CopyToClipboardProps

CopyToClipboardProps: PropsWithChildren<object>

Type declaration

MemberType
copiedTextstring
copyTextstring
valuestring

Source

libs/design-system-core/src/components/CopyToClipboard/index.tsx:7