0.0.5 • Published 8 years ago
react-rayr-tooltip v0.0.5
Description
the tooltip plugin for react.
1.can be showed in four different directions
Install
npm install react-rayr-tooltip --saveParams
| param | type | descript | default |
|---|---|---|---|
| position | String | the position of the tooltip(can receive one of 'right','left','top','buttom') | right |
| content | String | the content of the tooltip | |
| className | String | add custom styles for the tooltip |
Use Demo
import {RayrTooltip} from 'react-rayr-tooltip';
<RayrTooltip position='top' content={'<div>这是提示框的内容<div>'}>
鼠标上移出现提示框
</RayrTooltip>