MailtoLink
minimal usage
with blank target
with onClick
with subject and body
with cc and bcc
with multiple cc and bcc
MailtoLink Props API
children
nodeRequiredContent of the
MailToLinkclassName
stringCustom class names for the
MailToLinkto
emailPropType[]|emailPropTypeDefault[]Specifies the email's recipients
cc
emailPropType[]|emailPropTypeDefault[]Specifies the email's carbon copy recipients
bcc
emailPropType[]|emailPropTypeDefault[]Specifies the email's blind carbon copy recipients
subject
stringDefault''Specifies the email's subject
body
stringDefault''Specifies the email's body
target
stringDefault'_self'Specifies where the link should open. The default behavior is
_self, which means that the URL will be loaded into the same browsing context as the current oneonClick
funcDefaultnullSpecifies the callback function when the link is clicked
externalLink
shape{alternativeText:isRequiredIf(PropTypes.string, props => props.target === '_blank'),title:}isRequiredIf(PropTypes.string, props => props.target === '_blank'),Default{ alternativeText: 'in a new tab', title: 'Opens in a new tab', }The object that contains the
alternativeTextandtitlefields which specify the text and title for links with a_blanktarget (which loads the URL in a new browsing context).