Floating Tooltip
!NPM packagenpm-imgnpm-url
!Build Sizebuild-size-imgbuild-size-url
!NPM Downloadsnpm-downloads-imgnpm-downloads-urlA floating tooltip JS component.
Quick start
import Tooltip from 'float-tooltip';
or using a script tag
<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
|