@ordinateio/tooltip
v3.0.2
Published
The implementation of simple tooltips.
Downloads
1
Readme
Tooltip
The implementation of simple tooltips.
Installation
npm install --save-dev @ordinateio/tooltip
Usage
import '@ordinateio/tooltip/dist/index.css';
import {Tooltip} from '@ordinateio/tooltip';
let tooltip = new Tooltip();
tooltip.create('.container', {
trigger: 'click',
target: '.button',
content: 'attribute:data-tooltip-content',
});