A component that allows you to easily make snippets of text selectable and add it to your clipboard for pasting in another location.
Property | Type | Required | Default | Description |
---|---|---|---|---|
tooltip | String | false | Copy | The tooltip label before the text is copied. |
successTooltip | String | false | Copied! | The tooltip label after the text is copied. |
appendToBody | Bool | false | true | The tooltip will use appendToBody for positioning on the dom |
copyIcon | Node | false | <CopyToClipboardIcon /> | Icon to be used in the copy to clipboard button |
copySuccessIcon | Node | false | <CheckIcon /> | Icon to be used once the copy to clipboard button has been clicked |
children | Node | false | - | Text to be copied. |
copyValue | String | false | - | If you're using components as children of this component you must provide a string value to be copied to the clipboard when clicked |
positionFixed | Bool | false | - | The tooltip will use position: fixed |
tooltipStyle | Object | false | - | Style definition passed to the tooltip popover |
tooltipTargetWrapperStyle | Object | false | - | Style definition passed to the tooltip target wrapper |