Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.29 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.29 KB

React component to truncate your text with format and paragraphs support included.

NPM Build

Install

npm install --save react-truncated-component

Usage

function TruncatedText() {
  return (
    <ReactTruncatedComponent ellipsis="..." numberOfLines={5} lineHeight={23}>
      <p>{/*


    put your long text right here


    */}</p>
    </ReactTruncatedComponent>
  );
}

Docs

To see the documentation visit the website.

License

MIT © Juan Garcia