1.0.1 • Published 3 years ago

@kenyip/react-text-overflow v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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 display
  • character: The character appended to the text if overflowed
  • className: The class name append to the element
  • tag: The html block element. Default is p
  • text: The content of the component
1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago