Overview

Truncates the text to a certain number of lines and adds an ellipsis character "…".

This is a long text that will be truncated to two line. This is a long text that will be truncated to two line. This is a long text that will be truncated to two line. This is a long text that will be truncated to two line. This is a long text that will be truncated to two line.

Props

Name Description Type Default Required
text
Text to be truncated
string true
maxLines
Maximum number of lines to be shown
number 1
lineHeightIE
Text line height in rem. Used only for Internet Explorer fallback.
number 1.4