rctx-tooltip
v1.0.11
Published
Tooltip for React library
Downloads
27
Maintainers
Readme
rctx-tooltip
Tooltip package extensively for react library
Installation
npm install --save rctx-tooltip
Usage
import React, { Component } from 'react';
import RCTXTooltip from 'rctx-tooltip';
class Example extends Component {
render () {
return (
<RCTXTooltip>
<button>Hover over me</button>
</RCTXTooltip>
)
}
}
Key features
- Accept string or html.
- Inbuild animation like zoom or fade.
- Position the tooltip like however you want. You can specify offset as well.
- Add class to the tooltip or tooltip container element and style it however you want.
- Bunch of events like onShown or onHidden.
- Control scroll or resize hide.
- Append the tooltip anywhere you want.
Options
Checkout the example demo
Contributing 🙏
We will welcome any kind of contribution, small to big, suggestion to bug fixing or even collaborating. You can fork the repo and then make some changes and make a pull request. We will review your code and merge it 👏.
License
MIT © reachtokish