π Pocket
π¨βπ» Code
import {
PocketShareButton,
PocketIcon,
} from 'next-share'
<PocketShareButton
url={'https://github.com/next-share'}
title={'Next Share'}
>
<PocketIcon size={32} round />
</PocketShareButton>
π₯° Generate
π PocketShareButton Props
Props | Type | Default | Description | Required |
---|---|---|---|---|
children | node | React component, HTML element or string. | β | |
url | string | The URL of the shared page. | β | |
title | string | Title of the shared page. Note that if Pocket detects a title tag on the page being saved, this parameter will be ignored and the title tag of the saved page will be used instead. | β | |
windowWidth | number | 500 | Opened window width. | β |
windowHeight | number | 500 | Opened window height. | β |
blankTarget | boolean | false | Open share window in a new tab if set to true . | β |
π PocketIcon 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 . | β |