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.
- Host: GitHub
- URL: https://github.com/ocarreterom/tippy-remote-plugin
- Owner: ocarreterom
- License: mit
- Created: 2020-01-18T00:27:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T11:46:18.000Z (over 4 years ago)
- Last Synced: 2025-10-26T21:49:34.108Z (8 months ago)
- Topics: plugin, popover, popper, popperjs, tippy, tippyjs, tooltip
- Language: JavaScript
- Homepage: https://ocarreterom.github.io/tippy-remote-plugin/examples
- Size: 954 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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]
})
```