![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
react-performant-collapsible
Advanced tools
A performant React.js Collapsible component.
It doesn't repaint at all during the collapse/expand animation (It only repaint once at the beginning of the animation and once at the end of the animation):
npm i react-performant-collapsible
or
yarn add react-performant-collapsible
or
pnpm i react-performant-collapsible
Prop Name | Type | Required | Note |
---|---|---|---|
className | String | false | className for the wrapper element |
style | Object | false | style for the wrapper element |
horizontal | Boolean | false | if it is horizontal. default: false |
maskColor | String | false | background color for the mask element |
animationDuration | String | false | how long does the collapse/expand animation take. format is like 1s or 400ms , same as CSS property transition-duration |
animationTimingFunction | String | false | format is like linear or cubic-bezier(.29, 1.01, 1, -0.68) , same as CSS property transition-timing-function |
collapsible | Boolean | true | is currently collapsed or not |
children | React Node | true |
maskColor
used for?Sometimes if the background color is not white, you need to set the maskColor
to match the background color, e.g.
<div style={{background: 'red'}}>
<Collapsible collapsible={state.collapsible} maskColor="red">
{ someChildren }
</Collapsible>
</div>
FAQs
A performant React.js Collapsible component
We found that react-performant-collapsible 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.