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
Parameter | Type |
---|---|
props | CopyToClipboardProps |
context ? | any |
Returns
ReactNode
Source
libs/design-system-core/src/components/CopyToClipboard/index.tsx:27
Props
CopyToClipboardProps
CopyToClipboardProps:
PropsWithChildren
<object
>
Type declaration
Member | Type |
---|---|
copiedText | string |
copyText | string |
value | string |
Source
libs/design-system-core/src/components/CopyToClipboard/index.tsx:7