1.0.16 • Published 6 years ago

react-scroll-dragger v1.0.16

Weekly downloads
67
License
-
Repository
-
Last release
6 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

6 years ago

1.0.11

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.0

6 years ago