From a47b485534c97f37f2592d8fb7aca64d5e00de4b Mon Sep 17 00:00:00 2001 From: helloShantanu <1by18cs147@bmsit.in> Date: Fri, 2 Oct 2020 10:24:33 +0530 Subject: [PATCH 1/2] UI for Demo Page Refactor --- src/demo/index.html | 3 +- src/demo/index.tsx | 133 ++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 130 insertions(+), 6 deletions(-) diff --git a/src/demo/index.html b/src/demo/index.html index 2fa8e01..2a21c34 100644 --- a/src/demo/index.html +++ b/src/demo/index.html @@ -4,9 +4,10 @@ +
Please hover over Element and Click to copy
++ Install using npm or yarn +
+
+ npm install react-copy-mailto
+
OR
+
+ yarn add react-copy-mailto
+
+ Using in your App +
+
+ import React from "react";
+ import CopyMailTo from "react-copy-mailto";
+ const YourComponent = ()
+ => (
+ <div>
+ <CopyMailTo> email="email@domain.com" />
+ </div>
+ );
+
+ For More Details and Customization +
+