Gathering detailed insights and metrics for react-scroll-up-button
Gathering detailed insights and metrics for react-scroll-up-button
Gathering detailed insights and metrics for react-scroll-up-button
Gathering detailed insights and metrics for react-scroll-up-button
react-scroll-to-top
A lightweight and customizable button component that scrolls to the top of a page when pressed The button is only visible once a certain height has been reached on the page
react-scroll-button
Show a scroll button when you scrolled the page.
react-top-bottom-scroll
**Add a user-friendly scroll-to-top/bottom button to your React applications.**
react-simple-scroll-up
A minimal lightweight react component for adding a nice scroll up (back to top) button with onScroll progress.
npm install react-scroll-up-button
Typescript
Module System
Node Version
NPM Version
JavaScript (98.05%)
HTML (1.05%)
CSS (0.91%)
Total Downloads
1,498,301
Last Day
450
Last Week
1,913
Last Month
10,055
Last Year
138,360
52 Stars
154 Commits
11 Forks
3 Watching
1 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
1.6.4
Package Id
react-scroll-up-button@1.6.4
Unpacked Size
42.78 kB
Size
12.25 kB
File Count
25
NPM Version
5.6.0
Node Version
9.5.0
Cumulative downloads
Total Downloads
Last day
-11.2%
450
Compared to previous day
Last week
-24.8%
1,913
Compared to previous week
Last month
-4.6%
10,055
Compared to previous month
Last year
-59.7%
138,360
Compared to previous year
3
1
23
React Component for a fixed scroll to top button. The button can use the default button, or can be customized to look like any button you want. The component contains all the code neccassary to scroll to the top of the page (Or desired position) Utilizing Easing effects.
I am also adding many different style buttons that you can copy and paste into this component to quickly acheive a style you can appreciate and fits your websites look and feel.
https://react-scroll-up-button.com
1npm install react-scroll-up-button
1import React from "react"; 2import ScrollUpButton from "react-scroll-up-button"; //Add this line Here 3 4export default class Index extends React.Component { 5 render() { 6 return ( 7 <div> 8 <ScrollUpButton /> 9 //This is all you need to get the default view working 10 </div> 11 ); 12 } 13} 14
Setting Custom Classes to the default button. This will apply the class names you specify to the scroll-up-button.
1 <ScrollUpButton ContainerClassName="MyOverRideClass" TransitionClassName="MyOverRideTransitionedClass"/>
Setting inline styles to the default button. This will apply the styles to the scroll-up-button.
1 <ScrollUpButton style={{width: 75}} ToggledStyle={{right: 100}}/>
1import React from "react"; 2import ScrollUpButton from "react-scroll-up-button"; 3 4export default class Index extends React.Component { 5 render() { 6 return ( 7 <div> 8 <ScrollUpButton ContainerClassName="ScrollUpButton__Container" TransitionClassName="ScrollUpButton__Toggled"> 9 // Here you can add any react component or jsx 10 // ScrollButton will apply the classnames given to the container of whatever you put here. 11 // Changing appearence this way will only work when importing the default ScrollUpButton, importing any of the specific buttons do not except children 12 </ScrollUpButton> 13 </div> 14 ); 15 } 16}
1 <ScrollUpButton 2 StopPosition={0} 3 ShowAtPosition={150} 4 EasingType='easeOutCubic' 5 AnimationDuration={500} 6 ContainerClassName='ScrollUpButton__Container' 7 TransitionClassName='ScrollUpButton__Toggled' 8 style={{}} 9 ToggledStyle={{}} 10 />
StopPosition -- PageYOffset in which you want the page to stop at when scrolling up.
ShowAtPosition -- PageYOffset position at which the button will show up.
EasingType -- Easing option see : (https://www.npmjs.com/package/tween-functions) for available options.
AnimationDuration -- Milisecond duration of scrolling up.
ContainerClassName -- Class name applied to the container when NOT using the default view.
TransitionClassName -- Class name applied to the container to show the button when NOT using the default view.
style -- style the container directly with inline styleing, can be used with any imported button.
ToggledStyle -- Style the toggled state of the container directly, can be used with any imported button.
Click on a button to see its code.
Vertical Button | Circle Arrow Button | Tiny Up Button |
---|---|---|
Vertical_Button | React:
import React from "react";
import {VerticleButton as ScrollUpButton} from "react-scroll-up-button"; //Add this line Here
export default class Index extends React.Component {
render() {
return (
<div>
<ScrollUpButton />
</div>
);
}
}
Circle_Arrow_Button | React:
import React from "react";
import {CircleArrow as ScrollUpButton} from "react-scroll-up-button"; //Add this line Here
export default class Index extends React.Component {
render() {
return (
<div>
<ScrollUpButton />
</div>
);
}
}
Tiny_Up_Button | React:
import React from "react";
import {TinyButton as ScrollUpButton} from "react-scroll-up-button"; //Add this line Here
export default class Index extends React.Component {
render() {
return (
<div>
<ScrollUpButton />
</div>
);
}
}
I was inspired by: https://github.com/milosjanda/react-scroll-up With the base recource of the repo i was able to create my own in my style with additional functionality.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/20 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
174 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More