
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-stretchable-button
Advanced tools
A simple React button component that can be stretched to display something on mouse over.
A simple React button component that can be stretched to display something on mouse over.
Demo is available with source code.
npm install react-stretchable-button --save
| Property | Description | Default value | type |
|---|---|---|---|
height | Height of button | 50 | number |
width | Width of button before and after strech | [50,100] | array |
style | Style of root div | null | object |
buttonStyle | Style of button div | null | object |
square | Should button shape be square | false | boolean |
alignRight | Should button stretch to left | false | boolean |
stretchPadding | Padding of stretched button | 25 | number |
zDepth | Set zDepth of button, whose range is [0,5] | 2 | number |
transitionDuration | Duration time of button stretching (ms) | 250 | number |
emergeDelay | Delay time of component emerging | 100 | number |
onMouseEnter | Will be invoked each time mouse enters button | null | function |
onMouseLeave | Will be invoked each time mouse leaves button | null | function |
componentDisplayed | Component displayed before button is stretched | null | node |
componentToDisplay | Component to display after button is stretched | null | node |
git clone https://github.com/zianke/react-stretchable-button.gitcd react-stretchable-button && npm installnpm startexample/index.js and open example/index.htmlFAQs
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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.