A react component to create and display a mailto link.
npm install reactv16-mailto> A react component to create and display a mailto link.
- Install with NPM - npm install --save reactv16-mailto
``javascript
import React from 'react';
import Mailto from 'reactv16-mailto';
export const EmailComponent = () => (
Email me!
);
`
Property | Type | Argument | Default | Description
----------|-----------|--------------|-----------|------------
email | string | | null | email address of the intended recipient.boolean
obfuscate | | | false | show the email address in the status bar.object
headers | | | null | any standard mail header fields. The most commonly-used of these are "subject", "cc", and "body" (which is not a true header field, but allows you to specify a short content message for the new email).
reactv16-mailto is built using ES6. Run the following task to compile the src/ into dist/.
`bash``
npm run build