Manual Reference Source
import CopyToClipboardButton from 'cloudify-stage/basic/CopyToClipboardButton.js'
public class | source

CopyToClipboardButton

Extends:

react~Component → CopyToClipboardButton

CopyToClipboardButton component shows a simple copy icon and on click action it copies prop - text to clipboard

Access

Stage.Basic.CopyToClipboardButton

Usage

CopyToClipboardButton

<CopyToClipboardButton text='Text to copy' content='Copy ID' />

Static Member Summary

Static Public Members
public static

Static Public Members

public static propTypes: * source

Properties:

NameTypeAttributeDescription
text string
  • optional
  • default: ''

Text to be copied to clipboard

content string
  • optional
  • default: ''

Button label

className string
  • optional
  • default: ''

Class name to be added to button component