Read-More-More is a simple package for react that helps to implement 'read more' or 'read less' feature to any given text
npm install read-more-more
HTML String that you want to convert it to React element, you can do that too by add parseHtml prop
AdvReadMoreMore 😬, I know its pretty basic 😂.
text prop and it's required.
npm install read-more-more
`
#### Import
`
import {ReadMoreMore, AdvReadMoreMore} from 'read-more-more';
`
#### Use
`
or , add other props according to your needs
`
| Props | type | Default Value | Defination |
| :-----------: | :-----: | :-----------: | :----------------------------------------------------: |
| text | string | null | add the text you want to "read more/less" to it |
| checkFor | number | 300 np | how many characters it should check to add "read more" |
| btnStyles | object | null | pass custom styles to "read more/less" button |
| transDuration | number | 2s | transition duration for the read more/less collapsing |
| transType | string | linear | transition type for the read more/less collapsing |
| linesToShow | number | 3 | intial number of lines to show |
| parseHtml | boolean | false | to parse html string to react element |
| readMoreText | string | read more... | replace the default "read more..." with your own text |
| readLessText | string | read less... | replace the default "read less..." with your own text |
| textStyles | object | null | styles the text container along with the text |
#### Addition props for AdvReadMoreMore
| Props | type | Default Value | Defination |
| :-----------: | :-----: | :-----------: | :----------------------------------------------------: |
|lineHeight|number| 20 (i.e. 20px)|line height of the text|
|fontSize | number | 15 (i.e.15px)| font size of the text|
|color|string|#000| color of the text|
#### Note : textStyles prop is not suppported in AdvReadMoreMore`