Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

tippy-remote-plugin

0.6.0 • Public • Published

tippy-remote-plugin

A Tippy.js plugin to load remote content.

Install

npm install tippy-remote-plugin

Usage

With options

<a href="#" id="remote">My link</a>
import tippy from 'tippy.js';
import remote from 'tippy-remote-plugin'
 
tippy('#remote', {
  plugins: [remote],
  remote: '/remote-url.html'
})

Options

Name Value Default Description
remote string | false false The URL to get remote content.

With data attributes

<a href="#" data-tippy-remote="/remote-url.html">My link</a>
import tippy from 'tippy.js';
import remote from 'tippy-remote-plugin'
 
tippy('[data-tippy-remote]', {
  plugins: [remote]
})

Install

npm i tippy-remote-plugin

DownloadsWeekly Downloads

45

Version

0.6.0

License

MIT

Unpacked Size

4.42 kB

Total Files

4

Last publish

Collaborators

  • avatar