Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-css-collapse
Advanced tools
Component-wrapper for collapse animation with css for elements with variable and dynamic height
Component-wrapper for collapse animation with css for elements with variable and dynamic height
<Collapse isOpened={true || false}>
<div>Random content</div>
</Collapse>
isOpened
: PropTypes.boolean.isRequiredExpands or collapses content.
children
: PropTypes.node.isRequiredOne or multiple children with static, variable or dynamic height.
<Collapse isOpened={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.stringYou can specify a className with your desired style and animation
.collapse-transition-example {
transition: transform 250ms cubic-bezier(.4, 0, .2, 1);
}
style
: PropType.shape({})You can specify style as you desire. Maybe include some animation?
const style= {
transition: 'height 250ms cubic-bezier(.4, 0, .2, 1)',
WebKitTransition: 'height 250ms cubic-bezier(.4, 0, .2, 1)',
};
To run example covering all features, use npm run storybook
.
git clone [repo]
cd [repo]
npm install
npm run storybook
Open http://localhost:6006 🎆
1.0.0
Mar 28, 2017
Collapse
componentFAQs
Component-wrapper for collapse animation with css for elements with variable and dynamic height
The npm package react-css-collapse receives a total of 1,140 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.