1.0.10 • Published 5 years ago

tooltip-ff v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Install

npm i tooltip-ff

Usage

import React from 'react';
import ReactDOM from 'react-dom';

import XToolTip from 'tooltip-ff';

ReactDOM.render (
    <XToolTip position={'right'} content={'测试'}>
      {'我是测试按钮'}
    </XToolTip>,
  document.getElementById ('app')
);

API

参数说明类型默认
position气泡框位置,可选top,tl,tr,left,lt,lb,right,rt,rb,bottom,bl,brstringright
content气泡展示内容string/ReactNode/() => ReactNode
trigger触发行为,可选hover,clickstringhover
defaultVisible默认是否显隐booleanfalse
mouseEnter鼠标移入回调() => void
mouseLeave鼠标移出回调() => void
click点击回调() => void

demo

npm install

http://localhost:8080/

npm address

npm tooltip-ff

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago