rad_share

1.4.1 • Public • Published

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>

picture of popup widget

 

Inline Share

You can also load inline widgets instead of a popup. To do so, create an element with:

<div id='inline-root'></div>

picture of inline widget

 

Developer - Radiator Digital

Readme

Keywords

none

Package Sidebar

Install

npm i rad_share

Weekly Downloads

5

Version

1.4.1

License

none

Unpacked Size

199 kB

Total Files

3

Last publish

Collaborators

  • radiatordigital