1.1.1 • Published 3 years ago

react-clipboard-simple v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

react-clipboard-simple

Component that allows user to copy text on simple click.

Install

npm install react-clipboard-simple --save #or... yarn add react-clipboard-simple

Usage

import  React  from  "react";
import  ReactClipboard  from  "react-clipboard-simple";

export  default  function  App() {
let  data = [
			{
			title:  "Joy",
			symbol:  "😂",
			keywords:"face with tears of joy happy silly smiley cry laugh laugh emotion emotion sarcastic sarcastic"
			},{
			title:  "Smiley",
			symbol:  "😃",
			keywords:"smiling face with open mouth happy smiley emotion emotion good good",
			}];
return (
		<div>
		{data.map((emoji) => {
			return (
					<ReactClipboard  keyword={emoji.keywords}>
					<h1>{emoji.symbol}</h1>
					</ReactClipboard>
			);
		})}
		</div>
);
}
1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago