react-custom-tooltip
v1.0.3
Published
A small react library for creating a customised Tooltip
Downloads
6
Maintainers
Readme
React-ToolTip
A small react library for creating a customised Tooltip
Usage
First, install the package using npm:
npm i react-custom-tooltip
Then, require the package and use it like so:
import ToolTip from 'react-custom-tooltip';
<ToolTip text='Hello'/>
###Props 1. text="hello" 2.funComponent=()=>{} //for setting functional component 3.ClassComponent = {SomeclassComponent}
###Styling
.tooltip-container{ //for the main container } .tooltip-content{ //for content }
.tooltip-arrow{ //for positioning arrow }
License
MIT License