A lightweight, modern, and highly customizable social sharing component
WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email
Dark and light themes with full CSS customization
Works with React, Vue, Angular, or vanilla JS
Optimized for all screen sizes
Choose from multiple pre-built styles or create your own
Clean, minimal design
Eye-catching gradient
Light backgrounds
Space-saving variant
Minimal footprint
Customize button colors to match your brand palette
#f44336 - Material Red
#10b981 - Emerald Green
#3b82f6 - Sky Blue
#a855f7 - Custom Purple
#f97316 - Vibrant Orange
#ec4899 - Hot Pink
Choose which platforms to display
LinkedIn, X, Email
Facebook, X, reddit
WhatsApp, Telegram
Get started in seconds with minimal setup
// Include CSS and JS
<link rel="stylesheet" href="social-share-button.css">
<script src="social-share-button.js"></script>
// Initialize
new SocialShareButton({
container: '#share-button',
url: 'https://your-website.com',
title: 'Check this out!',
description: 'An amazing website'
});
First-class React support with hooks
import SocialShareButton from 'social-share-button';
function App() {
return (
<SocialShareButton
url="https://your-website.com"
title="Check this out!"
onShare={(platform) => {
console.log('Shared on:', platform);
}}
/>
);
}