# bee-tooltip

> bee-tooltip ui component for react

Latest version **2.2.3** (published 2022-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install bee-tooltip
pnpm add bee-tooltip
yarn add bee-tooltip
bun add bee-tooltip
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.3 |
| Published | 2022-01-07 |
| First published | 2016-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 4 |
| Unpacked size | 53 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | yonyou |
| Maintainers | honely1314, xiaoshutong, yonyoufed, jonyw, guoyongfeng, kvkens, whizbz, npm_yx, bjyxszd, tinper-bot, houjitong, gaox2025f, gcht163, cnkvkens, diozhu, wangjings123, liushaozhen, zhaoyuchief, boyuzhou, ahua52 |
| Keywords | react, react-component, react-tooltip, iuap-design, neoui-react, bee-tooltip |

## Links

- npm: https://www.npmjs.com/package/bee-tooltip
- Repository: https://github.com/tinper-bee/bee-tooltip
- Issues: https://github.com/tinper-bee/tooltip/issues
- npm.io page: https://npm.io/package/bee-tooltip

## Dependencies (4)

- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [bee-overlay](https://npm.io/package/bee-overlay.md) latest
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.20.0
- [tinper-bee-core](https://npm.io/package/tinper-bee-core.md) latest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.2.3 (latest) — 2022-01-07
- 2.1.5-alpha.0 (alpha) — 2019-12-06
- 2.2.2 — 2021-11-27
- 2.2.1 — 2021-11-26
- 2.2.0 — 2021-11-25
- 2.1.8 — 2020-05-11
- 2.1.7 — 2020-04-24
- 2.1.6 — 2020-02-08
- 2.1.5 — 2019-12-06
- 2.1.4 — 2019-09-23
- 2.1.4-alpha.1 — 2019-09-23
- 2.1.4-alpha.0 — 2019-09-23
- 2.1.3 — 2019-09-21
- 2.1.2 — 2019-06-13
- 2.1.2-alpha.0 — 2019-06-11
- … 38 more at https://npm.io/package/bee-tooltip/versions

## README

# bee-tooltip
[![npm version](https://img.shields.io/npm/v/bee-tooltip.svg)](https://www.npmjs.com/package/bee-tooltip)
[![Build Status](https://img.shields.io/travis/tinper-bee/bee-tooltip/master.svg)](https://travis-ci.org/tinper-bee/bee-tooltip)
[![Coverage Status](https://coveralls.io/repos/github/tinper-bee/bee-tooltip/badge.svg?branch=master)](https://coveralls.io/github/tinper-bee/bee-tooltip?branch=master)

react bee-tooltip component for tinper-bee.

 > cz test 0

#### setup develop environment 

```sh
$ git clone https://github.com/tinper-bee/bee-tooltip
$ cd bee-tooltip
$ npm install
$ npm run dev
```


## 使用

### 使用单独的tooltip包
#### 组件引入
先进行下载tooltip包
```
npm install --save bee-tooltip
```
组件调用
```js
import Tooltip from 'bee-tooltip';
React.render(
    <Tooltip
        onMouseOut={this.handle}
        inverse overlay={tip}>
        <Button colors="primary">
            请拂过我的脸庞
        </Button>
     </Tooltip>, document.getElementById('target'));
```
#### 样式引入
- 可以使用link引入dist目录下tooltip.css
```
<link rel="stylesheet" href="./node_modules/build/Tooltip.css">
```
- 可以在js中import样式
```js
import "./node_modules/src/Tooltip.scss"
//或是
import "./node_modules/build/Tooltip.css"
```

### 使用tinper-bee组件库
(tinper-bee组件库使用方法)[]

```
import { Tooltip } from 'tinper-bee';
```


## API

|参数|说明|类型|默认值|
|:--|:---|:--|:---|
|className|类名|string|-|
|placement|显示位置(`top` `left` `right` `bottom`)|string|top|
|inverse|反白显示|bool|false|
|trigger|触发叠加层的事件|click/hover/focus|hover/focus|
|delay|叠加层显示和隐藏的延迟时间|number|-|
|delayShow|叠加层显示的延迟时间|number|-|
|delayHide|叠加层隐藏的延迟时间|number|-|
|defaultOverlayShown|覆盖Overlay设置的默认显隐状态|boolean|false|
|overlay|叠加层|element/string/function|-|
|onBlur|失去焦点触发的时间|function|-|
|onClick|点击事件|function|-|
|onFocus|焦点事件|function|-|
|onMouseOut|鼠标离开事件|function|-|
|onMouseOver|鼠标滑过事件|function|-|
|placement|显示位置设置|top\left\bottom\right|right|
|rootClose|是否点击除弹出层任意地方隐藏|boolean|true|
|visible|是否控制弹出层的显示|boolean|-|
|onVisibleChange|使用控制弹出层显示时的钩子函数|function|-|
|container|容器|DOM元素/React组件/或者返回React组件的函数|-|

---
_Source: https://npm.io/package/bee-tooltip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
