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

paged-scroller

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paged-scroller

A horizontal psuedo-scrolling (no scroll bar) box component.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

example

paged-scroller

A horizontal psuedo-scrolling (no scroll bar) box component. Scroll arrows can be optionally displayed, and clicking on them scrolls over one page (making sure that no items are skipped). It also optionally supports drag gestures that play nice with items that have onClick handlers.

Installation

npm install paged-scroller

or

yarn add paged-scroller

Usage

<PagedScroller>
  {[...Array(20).keys()].map((i) => (
    <TestItem key={i} index={i} />
  ))}
</PagedScroller>

Props

All props are optional.

  • width (string): Width of the container as a string. Defaults to 100% (however, the max width is the width of all the items in the scroller).

  • itemGap (number): Gap between items (px).

  • showsArrows (boolean): Shows the paged scrolling arrow buttons. Defaults to true on non-touch devices.

  • enabledDrag (boolean): Enables scrolling with drag gestures. Defaults to true on touch devices.

  • dragElastic (boolean): Enables scrolling past the edges elastically.

  • scrollLeftButton (ReactElement): Provide a custom button for scrolling left.

  • scrollRightButton (ReactElement): Provide a custom button for scrolling right.

  • returnToStartButton (ReactElement): Provide a custom button for scrolling back to the start.

License

The MIT License (MIT)

FAQs

Package last updated on 31 Jan 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc