rmc-tooltip
v1.0.1
Published
React Tooltip
Downloads
74,450
Readme
rmc-tooltip
React Tooltip
Screenshot
Install
Usage
var Tooltip = require('rmc-tooltip');
var React = require('react');
var ReactDOM = require('react-dom');
// By default, the tooltip has no style.
// Consider importing the stylesheet it comes with:
// 'rmc-tooltip/assets/bootstrap_white.css'
ReactDOM.render(<Tooltip placement="left" overlay={<span>tooltip</span>}><a href='#'>hover</a></Tooltip>, container);
Examples
npm start
and then go to
http://localhost:8007/examples
Online examples: http://react-component.github.io/tooltip/examples/
API
Props
Note
Tooltip
requires child node accepts onClick
event.
Development
npm install
npm start
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
License
rmc-tooltip
is released under the MIT license.