Share Buttons
Email

πŸŽ€ Email

πŸ‘¨β€πŸ’» Code

import {
  EmailShareButton,
  EmailIcon,
} from 'next-share'
 
<EmailShareButton
  url={'https://github.com/next-share'}
  subject={'Next Share'}
  body="body"
>
  <EmailIcon size={32} round />
</EmailShareButton>

πŸ₯° Generate


πŸ“– EmailShareButton Props

PropsTypeDefaultDescriptionRequired
childrennodeReact component, HTML element or string.βœ…
urlstringThe URL of the shared page.βœ…
subjectstring❌
bodystring❌
separatorstring❌
blankTargetbooleanfalseOpen share window in a new tab if set to true.❌

πŸ“š EmailIcon Props

PropsTypeDefaultDescriptionRequired
sizenumberIcon size in pixels.❌
roundbooleanShow round or rectangle.❌
borderRadiusnumberSet rounded corners if using round icon.❌
bgStyleobjectCustomize background style.❌
iconFillColorstringwhiteCustomize icon fill color.❌
blankTargetbooleanfalseOpen share window in a new tab if set to true.❌