Clamp

Clamp is able to clamp multiline text content.

This is the pure CSS solution (experimental status).

<Clamp>some content might be very long</Clamp>

Example

Basic usage of Clamp component.

API

PropertiesDescriptionTypeDefault
maxLinesThe max number of lines that could be displayed, optionalnumber3
prefixClsthe prefix classstringr-clamp
classNamethe css class namestring''
ON THIS PAGE