π 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
Props | Type | Default | Description | Required |
---|---|---|---|---|
children | node | React component, HTML element or string. | β | |
url | string | The URL of the shared page. | β | |
subject | string | β | ||
body | string | β | ||
separator | string | β | ||
blankTarget | boolean | false | Open share window in a new tab if set to true . | β |
π EmailIcon Props
Props | Type | Default | Description | Required |
---|---|---|---|---|
size | number | Icon size in pixels. | β | |
round | boolean | Show round or rectangle. | β | |
borderRadius | number | Set rounded corners if using round icon. | β | |
bgStyle | object | Customize background style. | β | |
iconFillColor | string | white | Customize icon fill color. | β |
blankTarget | boolean | false | Open share window in a new tab if set to true . | β |