1.1.0 • Published 9 years ago

swat-react-tooltip v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

swat-react-tooltip

Install
npm install swat-react-tooltip --save
Usage
import Tooltip from 'swat-react-tooltip';

<Tooltip mode='hover' content={<div>My content</div>}>
    <div>My target</div>
</Tooltip>
Attributes

mode (default: 'click') can be 'hover'

content: the content of the tootip

className : set the className of the container

Styling
  • the target will be injected in a DOM element which has the className 'Tooltip-target'
  • the tootlip will be injected in a DOM element which has the className 'Tooltip-content'

Feel free to style and position this as you want !

1.1.0

9 years ago

1.0.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago