A copy button has the following properties:

  • copyButtonTooltipLabel (optional): the text that should be displayed on hover. Defaults to the value if not provided.
  • copyButtonValue: the value that should be copied to the user’s clipboard after clicking the button

For example:

import { uiComponent } from '@team-plain/typescript-sdk';

uiComponent.copyButton({
  value: '2a8f2dae-3580-402b-aa0a-243efae55e39',
  tooltip: 'Order ID',
});