Share Buttons
Linkedin

πŸŽ€ Linkedin

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

import {
  LinkedinShareButton,
  LinkedinIcon,
} from 'next-share'
 
<LinkedinShareButton url={'https://github.com/next-share'}>
  <LinkedinIcon size={32} round />
</LinkedinShareButton>

πŸ₯° Generate


πŸ“– LinkedinShareButton Props

PropsTypeDefaultDescriptionRequired
childrennodeReact component, HTML element or string.βœ…
urlstringThe URL of the shared page.βœ…
windowWidthnumber750Opened window width.❌
windowHeightnumber600Opened window height.❌
blankTargetbooleanfalseOpen 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

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.❌