3.0.0 • Published 8 months ago
@propellerads/smart-tooltip v3.0.0
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]