Social media share buttons and share counts for React
MIT License
Bot releases are visible (Hide)
htmlTitle
prop for the share button. This prop will be passed as the native title
attribute for the button
element.Published by github-actions[bot] 8 months ago
exports
in package.json to comply with the publint
and attw
tools. May solve issues when your project uses CommonJS modules and Node.js v16 or newer.Published by github-actions[bot] 11 months ago
exports
configuration (reference to dist/index.cjs
).Published by github-actions[bot] 11 months ago
RedditIcon
.FacebookIcon
, LinkedinIcon
, OKIcon
, PinterestIcon
, RedditIcon
, TelegramIcon
, TumblrIcon
, VKIcon
, ViberIcon
, WeiboIcon
, WorkplaceIcon
.Published by github-actions[bot] 11 months ago
@changesets/cli
was accidentally added in dependencies
. It is now moved to devDependencies
.Published by github-actions[bot] 11 months ago
quote
prop from FacebookShareButton
as it has been deprecated by Meta. See https://developers.facebook.com/support/bugs/734680371318112/?comment_id=743056360480513.aria-label
prop from ShareButtons
. Before it defaulted to the name of the "network name" (e.g. "facebook" for Facebook). Issue explained here.GabShareButton
and GabIcon
to share on gab.com. Originally implemented here.XIcon
.pinId
prop for PinterestShareButton
.HatenaShareCount
to show also 0
. Originally fixed here.createIcon
defaultProps warning with React 18.Published by nygardk about 2 years ago
peerDependencies
Published by nygardk over 3 years ago
peerDependencies
(#379)Published by nygardk about 4 years ago
HatenaShareButton
and HatenaShareCount
Published by nygardk over 4 years ago
assert
utility to get rid of Node.js assert
dependency (MINOR BREAKING CHANGE: the error thrown is slightly different)Published by nygardk over 4 years ago
FacebookMessengerShareButton
docs are now included in the readmeVKShareCount
from colliding with an existing window.VK
objectViberShareButton
is now ' '
WhatsappIcon
green color to match with WhatsApp brandShareButton
beforeOnClick
to return void
OKShareCount
for the returned index parameter by adding a sensible fallbackPublished by nygardk over 4 years ago
TwitterShareButton
won't have hashtags as empty string (#284, #293)OKShareCount
now supports multiple different share counts per page (#289)EmailShareButton
now has default separator
correctly as ' '
(#287)WhatsappShareButton
now has default separator
correctly as ' '
TumblrShareButton
now has default posttype
correctly as link
TwitterShareButton
now supports "related" array (#281)Published by nygardk almost 5 years ago
FacebookMessengerShareButton
and FacebookMessengerShareCount
WeiboIcon
VKShareButton
LinkedinShareButton
MailruShareButton
TumblrShareCount
FacebookShareCount
className
s have been changed{ ...rest }
props are spread to the root element for share buttons and share countsspan
element instead of div
svg
as root element instead of div
iconBgStyle
-> bgStyle
, logoFillColor
-> iconFillColor
Published by nygardk about 5 years ago
ref
on to the share buttonscomponentDidUpdate
instead of componentWillUpdate
Published by nygardk over 5 years ago
<PocketShareButton>
<InstapaperShareButton>
borderRadius
prop for iconsaria-label
is generated for the share buttons. It is based on the network name. Use additionalProps
to override.<LinkedInShareCount/>
. LinkedIn no longer provides an API to fetch share counts.title
and description
from <LinkedInShareButtons/>
.<EmailShareButton/>
includes body
before url
.<EmailShareButton/>
and <ViberShareButton/>
allow customization of separator
.<WeiboShareButton/>
no longer requires image
prop<WeiboShareButton/>
includes url correctly when shared<WeiboShareButton/>
and <OKShareButton/>
open in screen center to prevent window from jumping after openingPublished by nygardk over 5 years ago
<LineShareButton />
and <WeiboShareButton />
Published by nygardk over 5 years ago
Published by nygardk about 6 years ago
tabIndex
prop can now also be a numberPublished by nygardk about 6 years ago
<WorkplaceShareButton />
(Facebook Workplace)Published by nygardk over 6 years ago
<ViberShareButton />
name
prop in share buttons