react-custom-tooltip

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i react-custom-tooltip

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

19.5 kB

Total Files

4

Last publish

Collaborators

  • rajeshkumaran