@re-dev/react-truncate

Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.

react-string-truncate

truncate the text node of the specified child element that is pointed by the selector, and the ellipsis can be customized