1.0.1 • Published 4 years ago
@kenyip/react-text-overflow v1.0.1
React Text Overflow
Allow you specifies how overflowed content that is not displayed should be signaled to the use with support of multiple lines.
Usage
import TextOverflow from "@kenyip/react-text-overflow";
<TextOverflow
maxLine={3}
character="..."
className="some-class-name"
tag="p"
text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent commodo eu urna non iaculis"
/>Properties
React Shave accepts few properties:
maxLine: The maximum number of lines allowed to displaycharacter: The character appended to the text if overflowedclassName: The class name append to the elementtag: The html block element. Default isptext: The content of the component