Skip to content

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

Notifications You must be signed in to change notification settings

juangl/react-truncated-component

Repository files navigation


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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published