Multiline Text Ellipsis Component for React
Summary of my bookmarked Github repositories from Feb 14th, 2018
React-dotdotdot is a cross-browser multiline text ellipsis library for React. It is inspired by jQuery.dotdotdot and internally uses clamp-js. With React-dotdotdot, you can easily truncate long text content and display a specified number of lines. It provides various props like clamp, useNativeClamp, splitOnChars, animate, truncationChar, and more to customize the behavior. However, if you require more functionality, consider using react-truncate. Note that React-dotdotdot may have issues with nested markup and padding-bottom CSS rule, and line-height units should be chosen carefully. The library has undergone several updates and bug fixes, improving compatibility and adding TypeScript typings.