MailtoLink
minimal usage
<MailtoLink to="edx@example.com">
edx@example.com
</MailtoLink>
with blank target
<MailtoLink to="edx@example.com" target="_blank">
edx@example.com
</MailtoLink>
with onClick
<MailtoLink
to="edx@example.com"
target="_blank"
onClick={() => { /* some actions */ }}
>
edx@example.com
</MailtoLink>
with subject and body
<MailtoLink
to="edx@example.com"
subject="Check out this mailto component!"
body="This mailto component is awesome!"
>
email with subject and body
</MailtoLink>
with cc and bcc
<MailtoLink
cc="edx@example.com"
bcc="edx@example.com"
>
More mail, this time with cc and bcc
</MailtoLink>
with multiple cc and bcc
<MailtoLink
cc={['foo@example.com', 'bar@example.com', 'baz@example.com']}
bcc={['foo@example.com', 'bar@example.com', 'baz@example.com']}
>
edx@example.com
</MailtoLink>