A complete and simple to use share menu.
MIT License
Bot releases are visible (Hide)
Published by Dabolus about 1 year ago
Tiny hotfix on a code example in the readme. If you have already installed the 5.0.0
, don't worry about updating right away. There are no code changes between the two versions.
Published by Dabolus about 1 year ago
The component has been completely re-implemented from scratch to make it as modular and configurable as possible.
share-menu
component to be displayed. In this way, you can import only the targets that you need and exclude the rest from the bundle;--sm-
to avoid accidental conflicts when declaring CSS variables globally;Published by Dabolus almost 5 years ago
BREAKING CHANGES:
social-click
event renamed to share
browser
field on package.json
now points to the ESM version of the share menu, so that you can be sure that using a bare import specifier (i.e. import 'share-menu'
) you're going to get the module version instead of the IIFE version. To use the IIFE version, you will now need to import it explicitly (i.e. share-menu/share-menu.iife.js
)Other changes:
<share-menu text=""></share-menu>
will avoid using the description meta tag content as text default value)
close
and error
Published by Dabolus almost 5 years ago
Published by Dabolus almost 6 years ago
This release provides a minified version for both module and IIFE version of the element to make it more easily usable in a non-bundler environment.
Published by Dabolus almost 6 years ago
This release provides an IIFE (Immediately Invoked Function Expression) version of the element, so that it can be used even in a non-modules environment.
Published by Dabolus about 6 years ago
withoutBackdrop
has been renamed to noBackdrop
hideLabels
has been removedfacebookAppId
. You will now have to manually include Facebook JS SDKFor the complete list of changes, please checkout the new documentation.
Published by Dabolus about 7 years ago
A lot of new socials have been implemented, the code has been refactored and improved and some new properties have been added to allow a further customization of the fallback menu.
The socials are also now sorted by their popularity, instead of being sorted alphabetically.
Published by Dabolus about 7 years ago
If you are using this component, please update to this version as soon as possible.
Otherwise, users with a browser compatible with the Web Share API wouldn't be able to share.