float-tooltip
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

Floating Tooltip

NPM package Build Size NPM Downloads

A 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

Giving Back

paypal If this project has helped you and you'd like to contribute back, you can always buy me a !

Readme

Keywords

Package Sidebar

Install

npm i float-tooltip

Weekly Downloads

2,817

Version

1.2.1

License

MIT

Unpacked Size

158 kB

Total Files

8

Last publish

Collaborators

  • vasturiano