# react-horizontal-auto-scroll

> [![NPM version](https://img.shields.io/npm/v/react-horizontal-auto-scroll.svg?style=flat)](https://npmjs.org/package/react-horizontal-auto-scroll) [![Downloads/month](https://img.shields.io/npm/dm/react-horizontal-auto-scroll.svg)](http://www.npmtrends.co

Latest version **2.0.2** (published 2024-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-horizontal-auto-scroll
pnpm add react-horizontal-auto-scroll
yarn add react-horizontal-auto-scroll
bun add react-horizontal-auto-scroll
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2024-02-25 |
| First published | 2024-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 48.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aman Kazi |
| Maintainers | xynes |
| Keywords | react, reactjs, scrolling, horizontal, automatic, smooth, scroll, scroller |

## Links

- npm: https://www.npmjs.com/package/react-horizontal-auto-scroll
- Homepage: https://github.com/xynes-hub/react-horizontal-auto-scroll
- npm.io page: https://npm.io/package/react-horizontal-auto-scroll

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.2 (latest) — 2024-02-25
- 2.0.1 — 2024-02-25
- 2.0.0 — 2024-02-25
- 1.1.1 — 2024-02-23
- 1.1.0 — 2024-02-23

## README

[![NPM version](https://img.shields.io/npm/v/react-horizontal-auto-scroll.svg?style=flat)](https://npmjs.org/package/react-horizontal-auto-scroll)
[![Downloads/month](https://img.shields.io/npm/dm/react-horizontal-auto-scroll.svg)](http://www.npmtrends.com/react-horizontal-auto-scroll)

# react-horizontal-auto-scroll

> While scrolling through a webpage users often miss any content that is needed to be scrolled horizontally. With this React component one can overcome this issue easily both on desktops and mobile.

## Install

```bash
npm install --save react-horizontal-auto-scroll
```
## Usage
```jsx
import React from 'react';
import  Scroller  from  'react-horizontal-auto-scroll';

  

function  App() {
	
	return (
	<div  className="App">
		//Content
		//.............
		// More content
		<Scroller className="row">
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
			<Col>CONTENT</Col>
		</Scroller>
		//Content
		//.............
		// More content
	</div>
	);
}
```
### Here is a list of all props that Scroller accepts :

| Name        | Required     | Type | Default | Description|
|:----        |:----     |:----          |:----       |:----|
|scrollSpeed |`false`| `Number` | |Scroll speed depends on number ranging from 1-10 |
|isSlideShow |`false`| `Boolean` | |When set to true the horizontal scrolling will work kind of like a slideshow|
|reverse |`false`| `Boolean` | |When set to true horizontal reverse scrolling will trigger while scrolling up  |
|children |`false`| `ReactNode` | | A number of child elements need to passed for it to work |

> You can pass all html props to Scroller.

---
_Source: https://npm.io/package/react-horizontal-auto-scroll · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
