0.0.1 • Published 5 years ago

react-simple-copy v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-simple-copy

This component is used to copy text to clipboard

demo

https://abelce.github.io/react-simple-copy/

Installation and usage

Install

npm install -S react-simple-copy

Then use it in your app:

import React from 'react';
import Copy from 'react-simple-copy';

class App extends React.Component {

  render() {
    return (
      <Copy/>
    );
  }
}

Props

  • defaultValue
  • value
  • onCopy
  • onChange

License

MIT License

Keywords

react copy clipboard