rad_share
v1.4.1
Published
Downloads
20
Readme
Radiator Library - Share Widget
Installation
To start using this package, you can install via jsDelivr:
https://cdn.jsdelivr.net/npm/rad_share/dist/rad-share.js
or you can directly download from the /dist
folder. Place the script above the closing body tag.
Configuration
By default, Radiator Share will load the default config with all services. You can configure specific services like so:
<script>
window.rad_share_config = {
services: [
'facebook',
'twitter',
'linkedin',
'whatsapp',
'reddit',
'email'
]
}
</script>
Place this configuration script before the rad-share.js
script.
To start using the popup, append the attribute data-rad-share
to any element you wish to toggle the popup.
<button type='button' data-rad-share>
Share
</button>
Inline Share
You can also load inline widgets instead of a popup. To do so, create an element with:
<div id='inline-root'></div>
Developer - Radiator Digital