use-clamp-text

react hook to clamp multiline text to a given height in a responsive way (in < 2.5kb)

use-line-clamp

React.js hook to detect if text will clamp in X number of lines