1.0.3 • Published 5 years ago

react-custom-tooltip v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

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