Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
react-simple-scroll-container
Advanced tools
A simple scrolling container for react.
Prop | Type | What does it do |
---|---|---|
ContainerId | String | The id of the container to use for navigation. |
ExtraStyle | Object | Inline css object to be added to the container div. |
ExtraClass | String | Extra classname(s) to be added to the container div. |
TopScroll | Bool | Should container detect the currently active top element. |
TopScrollCallback | Func | Callback which provides the new active element. |
TopScrollOffset | Number | This is a small offset for the active scrolling detection, default is 10 pixels. |
Prop | Type | What does it do |
---|---|---|
SectionId | String | The id of the section to navigate to. |
ContainerId | String | The id of the container the element is in. |
Duration | Integer | The time it will take the scroll to complete the distance in ms. |
Offset | Integer | The amount to offset the scrolling to ( 10 means it will scroll 10 pixels higher.) |
Prop | Type | What does it do |
---|---|---|
Children | React component(s) | The children you want to be scrollable. |
SectionId | String | The section id you will use to scroll to. |
Using the containerId ensures you call a unique element in that specific container.
<ScrollContainer id="newContainer">
<ScrollSection id="section1">
<somecomponent />
</ScrollSection>
....
</ScrollContainer>
<div onClick={() => ScrollTo('targetId','newContainer', 10, 500)}>
Click me to navigate to section #1
</div>
FAQs
A simple scroll container for React.
The npm package react-simple-scroll-container receives a total of 6 weekly downloads. As such, react-simple-scroll-container popularity was classified as not popular.
We found that react-simple-scroll-container 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.