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 @@ + react-copy-mailto - +
diff --git a/src/demo/index.tsx b/src/demo/index.tsx index 4db66df..1e83daf 100644 --- a/src/demo/index.tsx +++ b/src/demo/index.tsx @@ -4,11 +4,134 @@ import ReactDOM from "react-dom"; import CopyMailTo from "../lib"; const App = () => ( -
-

Copy email address to clipboard

- +
+
+
+

REACT-COPY-MAILTO

+
+
+

+ Copy Email Address to Clipboard +

+

Please hover over Element and Click to copy

+ +
+
+
+

How to Install & Use

+
+
+

+ 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 +

+
+ + +
+
); diff --git a/src/lib/index.tsx b/src/lib/index.tsx index 5313063..8e9dffa 100644 --- a/src/lib/index.tsx +++ b/src/lib/index.tsx @@ -28,6 +28,7 @@ const containerBaseStyles: React.CSSProperties = { const tooltipBaseStyles: React.CSSProperties = { bottom: "26px", maxWidth: "fit-content", + minWidth: "115px", position: "absolute", width: "auto", margin: "auto",