react tiny auto suggest component
npm install tooltip-ff```
npm i tooltip-ff
`
import React from 'react';
import ReactDOM from 'react-dom';
import XToolTip from 'tooltip-ff';
ReactDOM.render (
{'我是测试按钮'}
document.getElementById ('app')
);
`
| 参数 | 说明 | 类型 | 默认 |
| -------------- | ------------------------------------------------------------------------------------- | ---------------------------------- | ------- |
| position | 气泡框位置,可选top,tl,tr,left,lt,lb,right,rt,rb,bottom,bl,br | string | right |string/ReactNode/() => ReactNode
| content | 气泡展示内容 | | 无 |hover
| trigger | 触发行为,可选,click | string | hover |boolean
| defaultVisible | 默认是否显隐 | | false |() => void
| mouseEnter | 鼠标移入回调 | | 无 |() => void
| mouseLeave | 鼠标移出回调 | | 无 |() => void
| click | 点击回调 | | 无 |
`
npm install
http://localhost:8080/
``