Package Exports
- float-tooltip
- float-tooltip/dist/float-tooltip.common.js
- float-tooltip/dist/float-tooltip.module.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (float-tooltip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Floating Tooltip
A floating tooltip JS component.
Quick start
import Tooltip from 'float-tooltip';or
const Tooltip = require('float-tooltip');or even
<script src="//unpkg.com/float-tooltip"></script>then
const myTooltip = Tooltip();
myTooltip
(<triggerDOMElement>)
.content('<div>Hello World!</div>');API reference
| Method | Description | Default |
|---|---|---|
| content([string]) | Specify the content of the tooltip. Supports plain text or HTML content. If a falsy value is supplied the tooltip will automatically hide. | false |
Giving Back
If this project has helped you and you'd like to contribute back, you can always buy me a ☕!