1.0.3 • Published 3 years ago

react-tooltippy v1.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

React Tooltipy

Pure react implementation for a simple fully customizable tooltip with edge detecting.

Usage

import { Tooltippy } from 'Tooltippy';
const tooltip = (
  <div>
    <span>Some content for the tooltip</span>
  </div>
);

<Tooltippy
  className='any_container'
  classNameTooltip='hover_tooltip'
  tooltipContent={tooltip}
>
  <span>Here you can add any HTML tag you want</span>
</Tooltippy>;

Properties

MarkdownLess
classNameDefault class for the hoverable div
classNameTooltipDefault class for the tooltip
tooltipContentTooltip content, your HTML mark-up
onClickIf you need your hoverable to be clicked you can use this function
paddingPadding for the tooltip positioning away from the mouse