1.0.1 • Published 7 years ago

rmc-tooltip v1.0.1

Weekly downloads
23,008
License
MIT
Repository
github
Last release
7 years ago

rmc-tooltip


React Tooltip

NPM version build status Test coverage gemnasium deps node version npm download

Screenshot

Install

rmc-tooltip

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.