
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
read-more-less-react
Advanced tools
React component for long texts that need read-more/read-less functionality
A react component for long text that needs read more/less functionality.
Do not forget to import the styling
import 'read-more-less-react/dist/index.css';
| props | signature | required | description |
|---|---|---|---|
| text | string | true | Text to be displayed with read more/less |
| lines | number | false | Number of lines to be showed when in collapsed state (default: 3) |
| type | 'plainText', 'html' | false | Type of the text. It can be either plain text string or an html string |
| readMoreText | string | false | Read more button text (default: More) |
| readLessText | string | false | Read less button text (default: Less) |
| onAction | () => void | false | If passed, this method will be called when Read more button is clicked |
| css class | description |
|---|---|
| rm-container | Main container class |
| rm-text-wrapper | Text wrapper class |
| rm-typography | Text class |
| rm-action-button-container | Action button container class |
| rm-more-button | Action read-more button class |
| rm-less-button | Action read-less button class |
import ReadMoreText from 'read-more-less-react';
import 'read-more-less-react/dist/index.css'
<ReadMoreText
lines={5}
text={TEXT}
/>
Do not forget to import the styling import 'read-more-less-react/dist/index.css';
FAQs
React component for long texts that need read-more/read-less functionality
The npm package read-more-less-react receives a total of 329 weekly downloads. As such, read-more-less-react popularity was classified as not popular.
We found that read-more-less-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.