Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 668 Bytes

Mailto.md

File metadata and controls

35 lines (26 loc) · 668 Bytes

<Mailto>

Creates <a> element with href attribute formatted to send an e-mail.

Usage

import {Mailto} from 'libreact/lib/Mailto';

<Mailto email='foo@bar.baz' subject='Hello'>
  Click me!
</Mailto>

Props

Signature

interface IMailtoProps {
  email: string;
  subject?: string;
  cc?: string[];
  bcc?: string[];
  body?: string;
}

, where

  • email - required, string, e-mail address.
  • subject - optional, string.
  • cc - optional, array of strings, representing e-mail addresses to CC.
  • bcc - optional, array of strings, representing e-mail addresses to BCC.
  • body - optional, string, e-mail body message.