3.0.0 • Published 8 months ago

@propellerads/smart-tooltip v3.0.0

Weekly downloads
1,432
License
MIT
Repository
github
Last release
8 months ago

SmartTooltip

NPM | Github

Installation

  • yarn add @propellerads/smart-tooltip or npm 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]