{"id":16191308,"url":"https://github.com/amirfefer/react-ellipsis-with-tooltip","last_synced_at":"2025-03-19T03:31:03.189Z","repository":{"id":65412043,"uuid":"115719347","full_name":"amirfefer/react-ellipsis-with-tooltip","owner":"amirfefer","description":" truncates (with ellipsis) overflowing text elements and adds a tooltip  https://amirfefer.github.io/react-ellipsis-with-tooltip","archived":false,"fork":false,"pushed_at":"2022-05-13T15:13:01.000Z","size":603,"stargazers_count":22,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T03:35:36.916Z","etag":null,"topics":["ellipsis","react","tooltip","truncates"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amirfefer.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-29T12:06:22.000Z","updated_at":"2024-03-22T08:48:09.000Z","dependencies_parsed_at":"2023-01-23T10:55:01.578Z","dependency_job_id":null,"html_url":"https://github.com/amirfefer/react-ellipsis-with-tooltip","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirfefer%2Freact-ellipsis-with-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirfefer%2Freact-ellipsis-with-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirfefer%2Freact-ellipsis-with-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirfefer%2Freact-ellipsis-with-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirfefer","download_url":"https://codeload.github.com/amirfefer/react-ellipsis-with-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965717,"owners_count":20375920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ellipsis","react","tooltip","truncates"],"created_at":"2024-10-10T07:45:44.548Z","updated_at":"2025-03-19T03:31:02.910Z","avatar_url":"https://github.com/amirfefer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ellipsis-with-tooltip\n\n\u003e truncates (with ellipsis) overflowing text elements and adds a tooltip https://amirfefer.github.io/react-ellipsis-with-tooltip\n\n[![Package Version](https://img.shields.io/npm/v/react-ellipsis-with-tooltip.svg?style=flat-square)](https://www.npmjs.com/package/react-ellipsis-with-tooltip)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Downloads Status](https://img.shields.io/npm/dm/react-ellipsis-with-tooltip.svg?style=flat-square)](https://npm-stat.com/charts.html?package=react-ellipsis-with-tooltip\u0026from=2016-04-01)\n[![Build Status: Linux](https://img.shields.io/travis/amirfefer/react-ellipsis-with-tooltip/master.svg?style=flat-square)](https://travis-ci.org/amirfefer/react-ellipsis-with-tooltip)\n[![Coverage Status](https://coveralls.io/repos/github/amirfefer/react-ellipsis-with-tooltip/badge.svg?branch=master)](https://coveralls.io/github/amirfefer/react-ellipsis-with-tooltip?branch=master)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![dependencies Status](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip/status.svg)](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip)\n[![devDependencies Status](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip/dev-status.svg)](https://david-dm.org/amirfefer/react-ellipsis-with-tooltip?type=dev)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![MIT License](https://img.shields.io/npm/l/stack-overflow-copy-paste.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\nRecognizes whether a text element is overflowed,\ntruncates (with ellipsis) it and adds bootstrap's tooltip.\nTry via [stroybook](https://amirfefer.github.io/react-ellipsis-with-tooltip)\n\n## Installation\n\n```console\nnpm install --save react-ellipsis-with-tooltip\n```\nor\n```console\nyarn add react-ellipsis-with-tooltip\n```\n\n## Usage\n\n### Table cell\n```js\nimport EllipsisWithTooltip from 'react-ellipsis-with-tooltip'\n\n\u003ctd\u003e\n  \u003cEllipsisWithTooltip placement=\"bottom\"\u003e\n     Lorem Ipsum\n  \u003c/EllipsisWithTooltip\u003e\n\u003ctd\u003e   \n```\n### Anchor element\n\n```js\nimport EllipsisWithTooltip from 'react-ellipsis-with-tooltip'\n\n\u003ctd\u003e\n  \u003cEllipsisWithTooltip placement=\"bottom\"\u003e\n    \u003ca href=\"#\"\u003e  Lorem Ipsum \u003c/a\u003e \n  \u003c/EllipsisWithTooltip\u003e\n\u003ctd\u003e \n```\n\n## License\n\nMIT \u0026copy; [Amir Fefer](https://github.com/amirfefer/react-ellipsis-with-tooltip)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirfefer%2Freact-ellipsis-with-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirfefer%2Freact-ellipsis-with-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirfefer%2Freact-ellipsis-with-tooltip/lists"}