In the <head>
tag
Note that you need to change the {VERSION}
part as appropriate (e.g.
0.1.2).
Please check the version information here:
<script src="https://cdn.jsdelivr.net/npm/@konemono/nostr-share-component@{VERSION}/dist/nostr-share-component.min.js
"></script>
In the <body>
tag
<nostr-share></nostr-share>
If all three of the above are empty, the title and URL of the current site will be shared.
default
, icon
, or mini
. This changes the button
style
as shown in the example.