Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
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.
react-scrollbars
Advanced tools
npm install react-scrollbars --save
var React = require('react');
var ScrollbarWrapper = require('react-scrollbar').ScrollbarWrapper;
var Component = React.createClass({
render: function() {
return (
<ScrollbarWrapper>
<div>
content
</div>
</ScrollbarWrapper>
);
}
});
module.exports = Component;
vertical={true}
values: true
, false
Force hide the scrollbars on the y-axis, regardless of what overflow
value is set in the CSS. Works best with overflow-y: hidden
.
horizontal={true}
values: true
, false
Force hide the scrollbars on the x-axis, regardless of what overflow
value is set in the CSS. Works best with overflow-x: hidden
.
offest={2}
values: any integer
Changes the space (margin) around the scrollbar component.
scrollbarThickness={10}
values: any integer
Controls the width
(in y-axis) or height
(in x-axis) of the scrollbar.
For optimized behavior add the following definitions to your stylesheets:
.ScrollbarContainer--scrolling {
-webkit-touch-callout: none;
user-select: none;
}
.ScrollbarContainer>div::-webkit-scrollbar {
width: 0;
height: 0;
}
.ScrollbarContainer>div::scrollbar {
width: 0;
height: 0;
}
FAQs
Stateful scrollbar component for React
The npm package react-scrollbars receives a total of 119 weekly downloads. As such, react-scrollbars popularity was classified as not popular.
We found that react-scrollbars 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
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.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.