https://github.com/amirfefer/react-ellipsis-with-tooltip
truncates (with ellipsis) overflowing text elements and adds a tooltip https://amirfefer.github.io/react-ellipsis-with-tooltip
https://github.com/amirfefer/react-ellipsis-with-tooltip
ellipsis react tooltip truncates
Last synced: over 1 year ago
JSON representation
truncates (with ellipsis) overflowing text elements and adds a tooltip https://amirfefer.github.io/react-ellipsis-with-tooltip
- Host: GitHub
- URL: https://github.com/amirfefer/react-ellipsis-with-tooltip
- Owner: amirfefer
- License: mit
- Created: 2017-12-29T12:06:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T15:13:01.000Z (about 4 years ago)
- Last Synced: 2025-03-08T03:35:36.916Z (over 1 year ago)
- Topics: ellipsis, react, tooltip, truncates
- Language: JavaScript
- Homepage:
- Size: 589 KB
- Stars: 22
- Watchers: 2
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# react-ellipsis-with-tooltip
> truncates (with ellipsis) overflowing text elements and adds a tooltip https://amirfefer.github.io/react-ellipsis-with-tooltip
[](https://www.npmjs.com/package/react-ellipsis-with-tooltip)
[](https://github.com/semantic-release/semantic-release)
[](https://npm-stat.com/charts.html?package=react-ellipsis-with-tooltip&from=2016-04-01)
[](https://travis-ci.org/amirfefer/react-ellipsis-with-tooltip)
[](https://coveralls.io/github/amirfefer/react-ellipsis-with-tooltip?branch=master)
[](http://makeapullrequest.com)
[](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip)
[](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip?type=dev)
[](https://github.com/prettier/prettier)
[](http://opensource.org/licenses/MIT)
Recognizes whether a text element is overflowed,
truncates (with ellipsis) it and adds bootstrap's tooltip.
Try via [stroybook](https://amirfefer.github.io/react-ellipsis-with-tooltip)
## Installation
```console
npm install --save react-ellipsis-with-tooltip
```
or
```console
yarn add react-ellipsis-with-tooltip
```
## Usage
### Table cell
```js
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'
Lorem Ipsum
```
### Anchor element
```js
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip'
Lorem Ipsum
```
## License
MIT © [Amir Fefer](https://github.com/amirfefer/react-ellipsis-with-tooltip)