# uxcore-tooltip

> uxcore-tooltip ui component for react

Latest version **0.4.13** (published 2019-01-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.13 |
| Published | 2019-01-09 |
| First published | 2015-08-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 34.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | vincent.bian |
| Maintainers | eternalsky, ex90rts, paseo, surfacew, taoqili, vincent.bian |
| Keywords | react, react-component, react-uxcore-tooltip, uxcore-tooltip |

## Links

- npm: https://www.npmjs.com/package/uxcore-tooltip
- Repository: https://github.com/uxcore/uxcore-tooltip
- Homepage: https://github.com/uxcore/uxcore-tooltip#readme
- Issues: http://github.com/uxcore/uxcore-tooltip/issues
- npm.io page: https://npm.io/package/uxcore-tooltip

## Dependencies (1)

- [rc-tooltip](https://npm.io/package/rc-tooltip.md) ^3.7.0

## 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

- 0.4.13 (latest) — 2019-01-09
- 0.4.12 — 2018-09-14
- 0.4.11 — 2018-06-15
- 0.4.10 — 2018-01-31
- 0.4.9 — 2018-01-29
- 0.4.8 — 2017-12-07
- 0.4.7 — 2017-10-28
- 0.4.6 — 2017-10-16
- 0.4.5 — 2017-04-05
- 0.4.4 — 2017-04-05
- 0.4.3 — 2017-02-14
- 0.4.2 — 2017-01-05
- 0.4.1 — 2017-01-04
- 0.4.0-beta.0 — 2016-12-30
- 0.3.4 — 2016-05-24
- … 12 more at https://npm.io/package/uxcore-tooltip/versions

## README

# uxcore-tooltip

---

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![Dependency Status][dep-image]][dep-url]
[![devDependency Status][devdep-image]][devdep-url] 
[![NPM downloads][downloads-image]][npm-url]

[![Sauce Test Status][sauce-image]][sauce-url]

[npm-image]: http://img.shields.io/npm/v/uxcore-tooltip.svg?style=flat-square
[npm-url]: http://npmjs.org/package/uxcore-tooltip
[travis-image]: https://img.shields.io/travis/uxcore/uxcore-tooltip.svg?style=flat-square
[travis-url]: https://travis-ci.org/uxcore/uxcore-tooltip
[coveralls-image]: https://img.shields.io/coveralls/uxcore/uxcore-tooltip.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/uxcore/uxcore-tooltip?branch=master
[dep-image]: http://img.shields.io/david/uxcore/uxcore-tooltip.svg?style=flat-square
[dep-url]: https://david-dm.org/uxcore/uxcore-tooltip
[devdep-image]: http://img.shields.io/david/dev/uxcore/uxcore-tooltip.svg?style=flat-square
[devdep-url]: https://david-dm.org/uxcore/uxcore-tooltip#info=devDependencies
[downloads-image]: https://img.shields.io/npm/dm/uxcore-tooltip.svg
[sauce-image]: https://saucelabs.com/browser-matrix/uxcore-tooltip.svg
[sauce-url]: https://saucelabs.com/u/uxcore-tooltip

## TL;DR

tooltip ui component for react

#### setup develop environment

```sh
$ git clone https://github.com/uxcore/uxcore-tooltip
$ cd uxcore-tooltip
$ npm install
$ gulp server
```

## Usage

```jsx
import Tooltip from 'uxcore-tooltip';

ReactDOM.render(
	<Tooltip
		placement="top"
		trigger="hover"
		overlay={title}
		<span>tooltip</span>
	</Tooltip>, document.getElementById('target'));
```

### demo
http://uxcore.github.io/uxcore/components/tooltip/

## API

### props

|参数|类型|默认值|说明|
|---|----|---|------|
|overlayClassName | string | uxcore | additional className added to popup overlay |
|trigger | string[] | ['hover'] | which actions cause tooltip shown. enum of 'hover','click','focus' |
|mouseEnterDelay | number | 0 | delay time to show when mouse enter.unit: s. |
|mouseLeaveDelay | number | 0.1 | delay time to hide when mouse leave.unit: s. |
|overlayStyle | Object |  | additional style of overlay node |
|wrapStyle | Object |  | additional style of wrap node |
|prefixCls | String | kuma-tooltip | prefix class name |
|onVisibleChange | Function |  | call when visible is changed |
|visible | boolean |  | whether tooltip is visible |
|defaultVisible | boolean |  | whether tooltip is visible initially |
|placement | String|Object |  | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', | 'bottomRight'] or alignConfig of [dom-align](https://github.com/yiminghe/dom-align)
|align | Object: alignConfig of [dom-align](https://github.com/yiminghe/dom-align) |  | only valid when placement's type | is String. value will be merged into placement's align config. note: can only accept offset and targetOffset
|overlay | React.Element |  | popup content |
|getTooltipContainer | function |  | function returning html node which will act as tooltip contaier |

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