react-copy-content

A Fully Customizable Click-To-Copy Component for React.
Checkout the Documentation on Github

            <ClickToCopy
              contentToCopy="This is the default look and feel"
            />
          

            <ClickToCopy
              contentToCopy="You can use custom JSX element for the button"
              render={props => (
                <a href="#copy" onClick={props.copy}>
                  Copy
                </a>
              )}
            />
          
Copy
            <ClickToCopy
              contentToCopy="You can even set a custom action to be triggered on copy"
              onCopy={() => this.onCopy("customSuccess", "Copied Successfully!")}
              render={props => (
                <a href="#copy" onClick={props.copy}>
                  Copy
                </a>
              )}
            />