@lesjoursfr/mastodon-share-button
v2.0.7
Published
Simple module to share content to Mastodon.
Downloads
97
Readme
@lesjoursfr/mastodon-share-button
Simple module to share content to Mastodon.
How to use
import MastodonShareButtons from "@lesjoursfr/mastodon-share-button";
import mastodonShareButtonsFr from "@lesjoursfr/mastodon-share-button/src/lang/fr";
/* Initialize the module */
new MastodonShareButtons({
lang: mastodonShareButtonsFr,
saveInstance: true,
});
<!-- Create a button -->
<button
mastodon-sharing-text="Mastodon sharing button! https://github.com/lesjoursfr/mastodon-share-button"
>
Share on Mastodon
</button>