Lightweight social sharing component for web applications. Zero dependencies, framework-agnostic.
- 🌐 Multiple platforms: WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email
- 🎯 Zero dependencies - pure vanilla JavaScript
- ⚛️ Framework support: React, Next.js, Vue, Angular, or plain HTML
- 🔄 Auto-detects current URL and page title
- 📱 Fully responsive and mobile-ready
- 🎨 Customizable themes (dark/light)
- ⚡ Lightweight (< 10KB gzipped)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/AOSSIE-Org/SocialShareButton@v1.0.3/src/social-share-button.css">
<script src="https://cdn.jsdelivr.net/gh/AOSSIE-Org/SocialShareButton@v1.0.3/src/social-share-button.js"></script>npm install social-share-button-aossienew SocialShareButton({
container: '#share-button'
});Add this HTML element:
<div id="share-button"></div>For framework-specific guides, configuration options, customization, and troubleshooting, visit the complete documentation in the /docs directory.
We welcome contributions of all kinds! To contribute:
- Fork the repository and create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Test your changes by opening
index.htmlin your browser to verify functionality. - Push your branch (
git push origin feature/AmazingFeature). - Open a Pull Request for review.
If you encounter bugs, need help, or have feature requests:
- Please open an issue in this repository providing detailed information.
- Describe the problem clearly and include any relevant logs or screenshots.
We appreciate your feedback and contributions!
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.