Socket
Book a DemoInstallSign in
Socket

cf-component-copyable-textarea

Package Overview
Dependencies
Maintainers
23
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-copyable-textarea

Cloudflare Copyable Textarea Component

latest
npmnpm
Version
5.0.0
Version published
Weekly downloads
3
-98.17%
Maintainers
23
Weekly downloads
 
Created
Source

cf-component-copyable-textarea

Cloudflare Copyable Textarea Component

Installation

Installation with yarn is recommended


$ yarn add cf-component-copyable-textarea

Usage

import React from 'react';
import { CopyableTextarea } from 'cf-component-copyable-textarea';

class CopyableTextareaComponent extends React.Component {
  render() {
    return (
      <CopyableTextarea
        name="copyable-textarea-example"
        value="Some nice text that needs to be copied"
        clickToCopyText="Click to copy"
        copiedTextToClipboardText="Copied text to clipboard"
        pressCommandOrCtrlCToCopyText="Press Command/Ctrl+C to copy"
      />
    );
  }
}

export default CopyableTextareaComponent;

FAQs

Package last updated on 08 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts