
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-scroll-button
Advanced tools
npm i react-scroll-button
import React from 'react';
import ScrollButton from 'react-scroll-button';
const ScrollComponent = () => {
return (
<ScrollButton
behavior="smooth"
buttonBackgroundColor="red"
iconType="arrowUp"
style={{ fontSize: '24px' }}
/>
);
};
| Property | Description | DefaultValue | Type |
|---|---|---|---|
| targetId | Id of element that you want to go | '' | string |
| behavior | Scroll type. 'auto', 'smooth' | auto | string |
| buttonBackgroundColor | BackgroundColor of button | 'green' | string |
| buttonColor | Color of icon | 'white' | string |
| iconType | Icon type 'up','arrowUp', 'caretUp' | 'up' | string |
| scrollSpeed | It specifies speed of the scroll button. | '1s' | string |
| buttonVisibleHeight | It specifies that the scroll button will be visible at what height on the page | 50 | number |
| style | Write custom css properties | { } | object |
License MIT
FAQs
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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.