Clamp
is able to clamp multiline text content.
This is the pure CSS solution (experimental status).
<Clamp>some content might be very long</Clamp>
<Clamp>some content might be very long</Clamp>
Basic usage of Clamp component.
Properties | Description | Type | Default |
---|---|---|---|
maxLines | The max number of lines that could be displayed, optional | number | 3 |
prefixCls | the prefix class | string | r-clamp |
className | the css class name | string | '' |