Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 871 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 871 Bytes

React-Truncate-Text npm version

Install

npm install react-text-truncate

Usage

import TextTruncate from 'react-text-truncate'; // recommend
var TextTruncate = require('react-text-truncate'); // CommonJS or UMD

Markup

<TextTruncate
	line={1}
	truncateText="…"
	text="Lorem Ipsum is simply dummy text of the printing and typesetting industry."
	showTitle={true}
    raf={true}
    />

Demo

Changelog

  • 0.5.0 Add request animation frame
  • 0.4.0 New property textTruncateChild for show more or others.
  • 0.3.7 Support CommonJS and UMD module loader
  • 0.3.5 Fix window resize issue
  • 0.3.4 supports Babel6
  • 0.2.0 supoorts React 0.14
  • 0.1.5 supports React 0.13.3 and below