Skip to content

Properties#

CopyOnClick properties#

TypeDescription
showCursorboolean(optional) Define if the copy cursor should be visible. Defaults to true.
disabledboolean(optional) If true, the copy functionality and copy cursor will be omitted. Defaults to false.
copyContentReact.ReactNode(optional) Contents to copy. Used when the copied value should differ from the visually shown value(children).
tooltipContentReact.ReactNode(optional) The message shown in the tooltip when the content is copied. Defaults to the translation CopyOnClick.clipboardCopy.
childrenReact.ReactNode(required) Contents.

CopyOnClick.Button properties#

TypeDescription
copyContentstring
number
(required) The text to copy.
titleReact.ReactNode(optional) Describes what the button copies, such as "Copy account number". When the button has no text, it is also used as the aria-label and defaults to the translation CopyOnClick.buttonTitle.
tooltipContentReact.ReactNode(optional) The message shown in the tooltip when the content is copied. Defaults to the translation CopyOnClick.clipboardCopy.
iconIconIcon(optional) Icon displayed on the button. Defaults to the copy icon.
variant"primary"
"secondary"
"tertiary"
(optional) Button variant. Defaults to tertiary.
ButtonVarious(optional) All button properties. A tooltip is hidden while the copy confirmation is shown.

Translations#

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SEda-DK
CopyOnClick.clipboardCopyKopiertCopiedKopieradKopieret
CopyOnClick.buttonTitleKopierCopyKopieraKopiér
Suggest an edit