react-read-more-less

0.1.6 • Public • Published

React Read More Less

NPM npm version license-isc

Install

npm install react-read-more-less --save

Usage

import ReadMoreAndLess from 'react-read-more-less';
 
class ReadMoreAndLessText extends Component {
    render() {
        return (
            <ReadMoreAndLess
                ref={this.ReadMore}
                className="read-more-content"
                charLimit={250}
                readMoreText="Read more"
                readLessText="Read less"
            >
                {Paragraph}
            </ReadMoreAndLess>
        );
    }
}

PROPTYPES

Prop Type Default
className String
charLimit integer 150
readMoreText String Read more
readLessText String Read less

react-read-more-less

Package Sidebar

Install

npm i react-read-more-less

Weekly Downloads

927

Version

0.1.6

License

ISC

Unpacked Size

47.9 kB

Total Files

9

Last publish

Collaborators

  • thamodaran