🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@kenyip/react-text-overflow

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@kenyip/react-text-overflow

React.js component that truncates multi-line text within a html element based on number of lines

unpublished
latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 20 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts