--- title: Copy to clipboard component slug: '3217' canonical_url: https://docs.coveo.com/en/3217/ collection: coveo-for-salesforce source_format: adoc --- # Copy to clipboard component [.version.c4sf.c4sf-edition.c4sf-pro-enterprise] [Pro and Enterprise editions](https://docs.coveo.com/en/l2590456#salesforce) The CopyToClipboard component is a [result action](https://docs.coveo.com/en/2934/) that allows [Coveo Insight Panel Lightning Component](https://docs.coveo.com/en/1028/) users to quickly copy a well-formatted result to the clipboard. To copy a well-formatted result to the clipboard, click ![Copy to Clipboard icon | Coveo for Salesforce](https://docs.coveo.com/en/assets/images/coveo-for-salesforce/copy-to-clipboard-icon.png). ## Options The component offers the following options: ### `icon` The icon that the ResultAction will display. If `text` is provided, the button will contain that text. If the HTML of an SVG image is provided, that image will be displayed in the button. ```html
``` ### `tooltip` The tooltip that displays when hovering the **Copy to Clipboard** result action. Default value is `Copy`. ```html
``` Where you can replace `` by the tooltip that should be displayed when users hover over the **Copy to Clipboard** result action. ### `successTooltip` The tooltip that displays when the action succeeds. Default value is `Copied!`. ```html
``` Where you can replace `` by the tooltip that should be displayed when the action succeeds. ### `template` Specifies the template that will be used for the **Copy to Clipboard** result action. Default value is `+${title}\n${ClickUri}+`. ```html
``` ## Methods This component doesn't provide any methods. ## Usage This component can be included in the Coveo Insight Panel Lightning Component. It should be inserted in the `
` section. ```html
```