Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-simple-scroll-up
Advanced tools
A minimal lightweight react component for adding a nice scroll up (back to top) button with onScroll progress.
A minimal lightweight react component for adding a nice scroll up (back to top) with onScroll progress.
npm i react-simple-scroll-up
yarn add react-simple-scroll-up
import React from 'react'
import { ScrollToTop } from 'react-simple-scroll-up'
const MyComponent = () => {
return (
<div className='App'>
<ScrollToTop {/* Props */} />
</div>
)
}
Prop | Type | Options | Description | Default |
---|---|---|---|---|
size | number | Optional | Set button width and height (in pixels) | 50 |
offsetTop | number | Optional | Show button after number of pixels that document has scrolled vertically | 100 |
bgColor | string | Optional | Button background color | rgb(0 0 0 / 75%) |
strokeWidth | number | Optional | Scroll progess bar width (in pixels) | 4 |
strokeFillColor | string | Optional | Scroll progess bar fill color | rgb(0 0 0 / 50%) |
strokeEmptyColor | string | Optional | Scroll progess bar empty color | rgb(200 200 200 / 85%) |
symbol | string or ReactNode | Optional | Use any HTML Symbols by simply copy/paste it OR any custom element, e.g. FontAwesomeIcon | 🡩 |
symbolSize | number | Optional | Symbol font size (in pixels). Only applies when symbol is a string. | 20 |
symbolColor | string | Optional | Symbol color. | #fff |
onScrolling | function | Optional | Callback function that is triggered while scrolling with value passed | - |
onScrollEnd | function | Optional | Callback function that is triggered when scroll is ended | - |
className | string | Optional | CSS class name | to-top-progress |
style | React.CSSProperties | Optional | CSS style | - |
MIT © awran5
FAQs
A minimal lightweight react component for adding a nice scroll up (back to top) button with onScroll progress.
The npm package react-simple-scroll-up receives a total of 69 weekly downloads. As such, react-simple-scroll-up popularity was classified as not popular.
We found that react-simple-scroll-up 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.