UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

64 lines (58 loc) 1.42 kB
--- version: 11.0.0 generatedAt: 2026-04-21T13:57:51.328Z checksum: 090b7d977ba4be5e2c4c04d199a30a4048416c59f443a56985df2f80629d9c40 --- ```tsx render( <Drawer open> <CopyOnClick>I'm inside the drawer</CopyOnClick> </Drawer> ) ``` ## Properties ```json { "props": { "showCursor": { "doc": "Define if the copy cursor should be visible. Defaults to `true`.", "type": "boolean", "status": "optional" }, "disabled": { "doc": "If `true`, the copy functionality and copy cursor will be omitted. Defaults to `false`.", "type": "boolean", "status": "optional" }, "copyContent": { "doc": "Contents to copy. Used when the copied value should differ from the visually shown value(`children`).", "type": "React.ReactNode", "status": "optional" }, "tooltipContent": { "doc": "The message shown in the tooltip when the content is copied. Defaults to the translation `CopyOnClick.clipboardCopy`.", "type": "React.ReactNode", "status": "optional" }, "children": { "doc": "Contents.", "type": "React.ReactNode", "status": "required" } } } ``` ## Translations ```json { "locales": ["da-DK", "en-GB", "nb-NO", "sv-SE"], "entries": { "CopyOnClick.clipboardCopy": { "nb-NO": "Kopiert", "en-GB": "Copied", "sv-SE": "Kopierad", "da-DK": "Kopieret" } } } ```