0.0.4 • Published 5 months ago
rcw-react-line-clamp v0.0.4
react line clamp component
This library implement a portion of the line-clamp
css property for react ecosystems.
What it does:
- It support html clamp
- It clamp content based on max height
What it does not:
- It not support clamp content based on lines (for rich html cotent, it's barely possible to calculate a line height accurately)
Usage
import { LineClamp } from "react-line-clamp";
<LineClamp html={htmlString} maxHeight={height} full={showFullContent} />;