1.11.0 • Published 4 years ago

read-more-less-toggle v1.11.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

read-more-less-toggle

React - Read more/less component for post, comment, text, etc.

Example

index.js

import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import ReadMoreLess from 'read-more-less-toggle';

ReactDOM.render(, document.getElementById('root')); serviceWorker.unregister();

Props

len = The length of the text which will be visible Content = The post/comment/reply btnColor (Optional) = Text Color of Read More / Read Less button btnBackgroundColor (Optional) = Background color of the Read More / Read Less button