New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maxweek/react-scroller

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxweek/react-scroller

Make your blocks scrolling easy, with a custom scroll-bar, based on native browser scroll

1.0.1
Source
npm
Version published
Maintainers
1
Created
Source

React-scroller

Make your blocks scrolling easy, with a custom scroll-bar, based on native browser scroll

How to install

npm i @maxweek/react-scroller

Usage

import Scroller from "@maxweek/react-scroller";

<Scroller
  needBar={true}
  barAltPosition={false}
  horizontal={false}
  grab={true}
  borderFade={true}
  borderPadding={true}
  grabCursor={true}
  className={'your-scroller-class'}
  barClassName={'your-scroller-bar-class'}
  barRollerClassName={'your-scroller-bar-roller-class'}
  contentClassName={'your-scroller-content-class'}
>
  {/* Your content */}
</Scroller>

Props

PropNameTypeDefaultDescription
childrenReactNodeReact child
needBar?booleanfalseenables scrollbar
barAltPosition?booleanfalsechanges scrollbar position, default at right - changes to left, when horizontal enabled - changes bottom to top
horizontal?booleanfalsemakes your box scrolling horizontal
grab?booleanfalseenables grabbing your scroll content
borderFade?booleanfalseadd fadding in directions of scroll by masking
borderPadding?booleanfalseadd padding in directions of scroll
grabCursor?booleanfalseenables grab cursor on hover
className?stringfalseclass for scroller box
barClassName?stringfalseclass for scrollbar
barRollerClassName?stringfalseclass for scrollbar roller
contentClassName?stringfalseclass for content wrapper

License

  • React Scroll is licensed under the MIT License. Explore this to understand terms and conditions of the license- https://opensource.org/licenses/MIT

Thank you for using my package! Max Nedelko

FAQs

Package last updated on 10 Apr 2024

Did you know?

Socket

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.

Install

Related posts