@quid/react-ellipsis
v4.11.6
Published
Trim multi-line text and add ellipsis to it
Downloads
32
Readme
react-ellipsis is a React component designed to trim multi-line text
to limit it to a given maximum height, adding the ellipsis (…
) symbol
at the end to denote some text has been cut.
It provides the same functionality of the CSS text-overflow: ellipsis
but with support for multi-line texts.
Installation
npm install --save @quid/react-ellipsis
# or
yarn add @quid/react-ellipsis
More documentation is available at https://ui.quid.com