0.4.4 • Published 4 years ago

reactv16-mailto v0.4.4

Weekly downloads
1,392
License
MIT
Repository
github
Last release
4 years ago

React <Mailto> Build Status

A react component to create and display a mailto link.

Credits

Getting Started

  • Install with NPM - npm install --save reactv16-mailto

Usage

import React from 'react';
import Mailto from 'reactv16-mailto';

export const EmailComponent = () => (
    <Mailto email="xyz@abc.com" obfuscate={true} >
        Email me!
    </Mailto >
);

Options

PropertyTypeArgumentDefaultDescription
emailstring<required>nullemail address of the intended recipient.
obfuscateboolean<optional>falseshow the email address in the status bar.
headersobject<optional>nullany 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).

Developing

reactv16-mailto is built using ES6. Run the following task to compile the src/ into dist/.

npm run build

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Copyright (c) 2015 Srikanth Bandaru Licensed under the MIT license.