π Linkedin
π¨βπ» Code
import {
LinkedinShareButton,
LinkedinIcon,
} from 'next-share'
<LinkedinShareButton url={'https://github.com/next-share'}>
<LinkedinIcon size={32} round />
</LinkedinShareButton>π₯° Generate
π LinkedinShareButton Props
| Props | Type | Default | Description | Required |
|---|---|---|---|---|
| children | node | React component, HTML element or string. | β | |
| url | string | The URL of the shared page. | β | |
| windowWidth | number | 750 | Opened window width. | β |
| windowHeight | number | 600 | Opened window height. | β |
| blankTarget | boolean | false | Open share window in a new tab if set to true. | β |
How do you use things like title, summary, etc.?
Use og tags in the <head> block of the HTML.
<meta property='og:image' content='' />
<meta property='og:title' content='' />
<meta property='og:description' content='' />π LinkedinIcon 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. | β |