A Vue component for social sharing.
# yarn
yarn add @binalogue/vue-social-media
# npm
npm install @binalogue/vue-social-media --save
Once installed, it can be used in a Vue file as simply as:
import { Facebook, Twitter, WhatsApp } from '@binalogue/vue-social-media';
export default {
components: {
Facebook,
Twitter,
WhatsApp,
},
};
<Facebook url="https://example.com">
<!-- Your code. Example: -->
<IconFacebook />
</Facebook>
<Twitter url="https://example.com" text="Hello World!">
<IconTwitter />
</Twitter>
<WhatsApp url="https://example.com" text="Hello World!">
<IconWhatsApp />
</WhatsApp>
- Vue - The Progressive JavaScript Framework
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.