1.0.16 • Published 4 years ago

react-scroll-dragger v1.0.16

Weekly downloads
67
License
-
Repository
-
Last release
4 years ago

React Scroll Dragger

Simple drop-in container for enabling horizontal drag scrolling.

import DragScroll from 'react-scroll-dragger'

<DragScroll
  componentsOrder={["prev_button", "children", "next_button"]}
>
  {items.map((item) => {
    return (
      <Item item={item} />
    );
  }}
</DragScroll>

Check out the live demo.

Install

npm install react-scroll-dragger

API

Props

componentsMap: Array<string>

An array of strings that will determine the order in which components (buttons and items to be scrolled) are rendered. Available options are prev_button, children, and next_button.

Default value: ["prev_button", "children", "next_button"]

1.0.16

4 years ago

1.0.11

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago