0.0.8 • Published 5 years ago
@ibh/react-tooltip v0.0.8
Useful tooltip for react components, here is a live demo..
Recipes
- React-spring
- react-use-measure
Install
yarn add @ibh/react-tooltipImport
import Tooltip from "@ibh/react-tooltip";Usage
To use the tooltip, you need to pass your tooltip component through the render prop, and the tooltip will automatically calculate the position of your component to handle the border collision.
<Tooltip render={() => <Infos>Im a tooltip</Infos>}>
<Icon />
</Tooltip>Todo
- Handle right side border bypass