Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uiur/react-overflow-tooltip

A React component that adds a tooltip only if the text is overflow.
https://github.com/uiur/react-overflow-tooltip

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

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')

too long text

// =>

too long text...

{ text }

// =>

too long text...

```

## Install

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

## License

[ISC](LICENSE)