React-Share-Kit v2.0.0

React Share Kit

A simple and easy-to-use library for adding social media share buttons to your React & Next.js applications. With React-Share-Kit, you can quickly integrate share buttons for popular social media platforms such as Facebook, X (Twitter), Bluesky, Threads, LinkedIn, and more.

If package size matters and you don't need share counts, react-share-lite is the lightweight alternative.

📕 Global Props

NameTypeDefaultDescriptionRequired
urlstringnullThe URL of the shared page.TRUE
titlestringnullThe title of the shared page.FALSE
windowWidthnumber550Opened window width.FALSE
windowHeightnumber400Opened window height.FALSE
blankTargetbooleanfalseOpen share window in a new tab if set to true.FALSE
bgColorstringrelated colorIcon background color.FALSE
roundbooleanfalseThe "round" attribute creates a fully circular button shape, giving it a 100% rounded appearance.FALSE
borderRadiusnumber0Custom round the share icon.FALSE
sizenumber64The share icon size.FALSE
buttonTitlestringnullThe title of button used instead of icon.FALSE

🚀 Installation

npm i react-share-kit

Or

yarn add react-share-kit