π Pinterest
π¨βπ» Code
import {
PinterestShareButton,
PinterestIcon,
} from 'next-share'
<PinterestShareButton
url={'https://github.com/next-share'}
media={'next-share is a social share buttons for your next React apps.'}
>
<PinterestIcon size={32} round />
</PinterestShareButton>
π₯° Generate
π PinterestShareButton Props
Props | Type | Default | Description | Required |
---|---|---|---|---|
children | node | React component, HTML element or string. | β | |
url | string | The URL of the shared page. | β | |
media | string | The image URL that will be pinned. | β | |
description | string | The description of the shared media. | β | |
windowWidth | number | 1000 | Opened window width. | β |
windowHeight | number | 730 | Opened window height. | β |
blankTarget | boolean | false | Open share window in a new tab if set to true . | β |
π LineIcon 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 . | β |