hutsoninc / react-email-share-link

A React component for creating share by email links.

Home Page:https://www.npmjs.com/package/react-email-share-link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-email-share-link

A React component for creating share by email links.

Installation

npm install --save react-email-share-link

How to use

import EmailShare from 'react-email-share-link'

<EmailShare email="mickey@mouse.com" subject="Your subject" body="Your message, including the link to this page">
   {link => (
      <a href={link} data-rel="external">Share this by email</a>
   )}
</EmailShare>

NOTE: If you don't pass a body prop, it will default to document.location.href. If a body is provided, don't forget to include a link to the page.

License

MIT © Hutson Inc

About

A React component for creating share by email links.

https://www.npmjs.com/package/react-email-share-link

License:MIT License


Languages

Language:JavaScript 92.8%Language:HTML 7.2%