@propellerads/smart-tooltip
v3.0.0
Published
[NPM](https://www.npmjs.com/package/@propellerads/smart-tooltip) | [Github](https://github.com/propellerads/ui-components/tree/master/Components/SmartTooltip)
Downloads
2,784
Keywords
Readme
SmartTooltip
Installation
yarn add @propellerads/smart-tooltip
ornpm install @propellerads/smart-tooltip -S
How to use
import {hideTooltip, showTooltip, TOOLTIP_POSITION} from '@propellerads/smart-tooltip';
- invoke func on onMouseEnter event and pass target
showTooltip(e.target, 'tip'[, position])
- invoke func on onMouseLeave event
hideTooltip()
- use TOOLTIP_POSITION object to define proper Tooltip position
[right, left, top, bottom]