# react-overflow-tooltip

> A React component that shows a tooltip only if the text is overflow

Latest version **2.0.1** (published 2017-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-overflow-tooltip
pnpm add react-overflow-tooltip
yarn add react-overflow-tooltip
bun add react-overflow-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.0.1 |
| Published | 2017-05-18 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Author | Kazato Sugimoto |
| Maintainers | uiureo |
| Keywords | browser, react |

## Links

- npm: https://www.npmjs.com/package/react-overflow-tooltip
- Repository: https://github.com/uiureo/react-overflow-tooltip
- Issues: https://github.com/uiureo/react-overflow-tooltip/issues
- npm.io page: https://npm.io/package/react-overflow-tooltip

## 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.0.1 (latest) — 2017-05-18
- 2.0.0 — 2015-11-20
- 1.0.2 — 2015-08-27
- 1.0.1 — 2015-08-27
- 1.0.0 — 2015-08-27

## README

# react-overflow-tooltip

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]

[npm-image]: https://img.shields.io/npm/v/react-overflow-tooltip.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/react-overflow-tooltip
[travis-image]: https://img.shields.io/travis/uiureo/react-overflow-tooltip.svg?style=flat-square
[travis-url]: https://travis-ci.org/uiureo/react-overflow-tooltip

A React component that shows a tooltip only if the text is overflow.

```js
var ReactOverflowTooltip = require('react-overflow-tooltip')

<ReactOverflowTooltip title='too long text'>
  <div>too long text</div>
</ReactOverflowTooltip>
// => <div title="too long text...">too long text...</div>

<ReactOverflowTooltip title='short text'>
  <div>{ text }</div>
</ReactOverflowTooltip>
// => <div>too long text...</div>
```

## Install

```
npm install react-overflow-tooltip
```

## License

[ISC](LICENSE)

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