Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 752 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 752 Bytes

Description

the tooltip plugin for react.

    1.can be showed in four different directions

Install

npm install react-rayr-tooltip --save

Params

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>

   tips:don`t forget to import the css file