
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
react-css-collapse
Advanced tools
Component-wrapper for collapse animation with css for elements with variable and dynamic height
Collapse component with css transition for elements with variable and dynamic height.
Global coverage > 92% - browserl.ist
import Collapse from 'react-css-collapse';
<Collapse isOpen={true || false}>
<div>content</div>
</Collapse>
isOpen: PropTypes.booleanExpands or collapses content.
children: PropTypes.node<Collapse isOpen={true}>
<p>Paragraph of text</p>
<p>Another paragraph is also OK</p>
<p>Images and any other content are ok too</p>
<img src="cutecat.gif" />
</Collapse>
className: PropType.stringSpecify transition using the class selector with transition or the style property.
The react-css-collapse-transition class selector is added by default unless you specify your own. Note: Remember to include the style if you are using the default selector 👇
.react-css-collapse-transition {
transition: height 250ms cubic-bezier(.4, 0, .2, 1);
}
onRest: PropTypes.funcCallback function for when your transition on height (specified in className) is finished. It can be used to trigger any function after transition is done.
Collapse transfers aria- and data- attributes to the component's rendered DOM element. For example this can be used to set the aria-hidden attribute:
<Collapse isOpen={isOpenState} aria-hidden={isOpenState ? 'false' : 'true'}>
<p>Paragraph of text</p>
</Collapse>
To run example covering all features, use npm run storybook.
git clone [repo]
cd [repo]
npm install
npm run storybook
Open http://localhost:6006 🎆
4.0.3
January 8, 2020
FAQs
Component-wrapper for collapse animation with css for elements with variable and dynamic height
The npm package react-css-collapse receives a total of 4,235 weekly downloads. As such, react-css-collapse popularity was classified as popular.
We found that react-css-collapse 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.