Share Buttons
Facebook

πŸŽ€ Facebook

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

import {
  FacebookShareButton,
  FacebookIcon,
} from 'next-share'
 
<FacebookShareButton
  url={'https://github.com/next-share'}
  quote={'next-share is a social share buttons for your next React apps.'}
  hashtag={'#nextshare'}
>
  <FacebookIcon size={32} round />
</FacebookShareButton>

πŸ₯° Generate


πŸ“– FacebookShareButton Props

PropsTypeDefaultDescriptionRequired
childrennodeReact component, HTML element or string.βœ…
urlstringThe URL of the shared page.βœ…
quotestringA quote to be shared.❌
hashtagstringHashtag to be shared.❌
windowWidthnumber550Opened window width.❌
windowHeightnumber400Opened window height.❌
blankTargetbooleanfalseOpen share window in a new tab if set to true.❌

πŸ“š FacebookIcon 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.❌