npm package of the component - https://www.npmjs.com/package/tooltip-for-react
Tooltip component to be used on any element to show tooltip
Code eg:
<Tooltip text="Hello" position="top">
<button className='btn'>Say Hello</button>
</Tooltip>
- Here text is a mendatory field whereas position is optional, position defaults to right if not provided.
- All 4 positions (top,left,right,bottom) can be provided.