2.0.0 • Published 4 years ago

mil-share v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

\<mil-share>

'mil-share' is webcomponent that let share the current url on social networks and by email. Available links: Facebook, Twitter, Whatsapp, email. V2 removes dependency from Polymer and only relies on lit-element

Demo: https://stackblitz.com/edit/mil-share-example?file=index.js

Usage

Install from npm

npm install --save mil-share

Import to your webcomponent

import "mil-share";

Add to html

<mil-share></mil-share>

Styling

Use customs CSS properties for styling.

CSS propertyDefinitionDefault
--body-text-colorheader font color#555
--social-icon-widthsocial icons width32px
--social-icon-heightsocial icons height32px
--share-icon-colorshare icon color#555
--share-icon-heightshare icon height24px
--share-icon-widthshare icon width24px
--share-icon-color-hovershare icon fill color when hovered#eee