simple-react-clipboard
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "simple-react-clipboard", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A simple and flexible React utility component for copying texts to the clipboard.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# Simple React Clipboard | ||
A simple and flexible React utility component for copying texts to the clipboard. | ||
A simple and flexible React utility component for copying texts to the clipboard. Some code is based on [clipboard.js](https://github.com/zenorocha/clipboard.js). | ||
## Getting Started | ||
``` | ||
npm i simple-react-clipboard | ||
``` | ||
@@ -35,4 +38,4 @@ The component passed in the `render` prop will have the `copy` function passed in as a prop. | ||
`props` | `object` | `props` to pass to the component in `render` | N | ||
`onSuccess` | `function` | Function called after when `copy` succeeds. | N | ||
`onError` | `function` | Function called after `copy` fails. | N | ||
`onSuccess` | `function` | Function called when `copy` succeeds. | N | ||
`onError` | `function` | Function called when `copy` fails. | N | ||
@@ -39,0 +42,0 @@ ## To Run this Repository |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11086
52