Truncate
A Truncate component can help you crop multiline text. There will be three dots at the end of the text.
Basic Usage
With the custom ellipsis
With the onTruncate
Example usage in Card
Truncate Props API
- childrenstringRequiredThe expected text to which the ellipsis would be applied. 
- linesstring|numberDefault1The number of lines the text to be truncated to. 
- ellipsisstring|number|nodeDefault'...'Text content for the ellipsis - will appear after the truncated lines. 
- whiteSpaceboolDefaultfalseAdds the whitespace from before the ellipsis. 
- elementTypestringDefault'div'Custom html element for truncated text. 
- classNamestringSpecifies class name to append to the base element. 
- onTruncatefuncCallback fired when a text truncating