An open API service indexing awesome lists of open source software.

https://github.com/ocarreterom/tippy-remote-plugin

A Typpy.js plugin to load remote content.
https://github.com/ocarreterom/tippy-remote-plugin

plugin popover popper popperjs tippy tippyjs tooltip

Last synced: 5 months ago
JSON representation

A Typpy.js plugin to load remote content.

Awesome Lists containing this project

README

          

# tippy-remote-plugin
A [Tippy.js](https://github.com/atomiks/tippyjs) plugin to load remote content.

## Install
```sh
npm install tippy-remote-plugin
```

## Usage
### With options
```html
My link
```

```js
import tippy from 'tippy.js'
import remote from 'tippy-remote-plugin'

tippy('#remote', {
plugins: [remote],
remote: '/remote-url.html'
})
```

#### Options
| Name | Default | Description |
| ------ | ------- | ----------------------------------------------------------------- |
| remote | `false` | The URL to get remote content. Possible values: `string`, `false` |

### With data attributes
```html
My link
```

```js
import tippy from 'tippy.js'
import remote from 'tippy-remote-plugin'

tippy('[data-tippy-remote]', {
plugins: [remote]
})
```