1.0.16 • Published 5 years ago

react-scroll-dragger v1.0.16

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

5 years ago

1.0.11

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago