# @cloudparker/easy-horizontal-scroller-svelte

> A lightweight and user-friendly library for implementing horizontal scrolling on both web and mobile UIs. This intuitive scroller relies solely on the drag feature, providing a seamless and responsive experience across various devices.

Latest version **0.0.4** (published 2023-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cloudparker/easy-horizontal-scroller-svelte
pnpm add @cloudparker/easy-horizontal-scroller-svelte
yarn add @cloudparker/easy-horizontal-scroller-svelte
bun add @cloudparker/easy-horizontal-scroller-svelte
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-04-09 |
| First published | 2023-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 17 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 (+20 in 3 direct dependencies) |
| Install scripts | no |
| Author | cloudparker.com |
| Maintainers | couldparker.com |
| Keywords | svelte, js, scroller, ui, easy |

## Links

- npm: https://www.npmjs.com/package/@cloudparker/easy-horizontal-scroller-svelte
- npm.io page: https://npm.io/package/@cloudparker/easy-horizontal-scroller-svelte

## Dependencies (17)

- [vite](https://npm.io/package/vite.md) ^4.2.0
- [tslib](https://npm.io/package/tslib.md) ^2.4.1
- [eslint](https://npm.io/package/eslint.md) ^8.28.0
- [svelte](https://npm.io/package/svelte.md) ^3.54.0
- [vitest](https://npm.io/package/vitest.md) ^0.25.3
- [publint](https://npm.io/package/publint.md) ^0.1.9
- [prettier](https://npm.io/package/prettier.md) ^2.8.0
- [typescript](https://npm.io/package/typescript.md) ^5.0.0
- [svelte-check](https://npm.io/package/svelte-check.md) ^3.0.1
- [@playwright/test](https://npm.io/package/@playwright/test.md) ^1.28.1
- [@sveltejs/package](https://npm.io/package/@sveltejs/package.md) ^2.0.0
- [eslint-plugin-svelte3](https://npm.io/package/eslint-plugin-svelte3.md) ^4.0.0
- [@sveltejs/adapter-auto](https://npm.io/package/@sveltejs/adapter-auto.md) ^2.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.5.0
- [prettier-plugin-svelte](https://npm.io/package/prettier-plugin-svelte.md) ^2.8.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^5.45.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^5.45.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.4 (latest) — 2023-04-09
- 0.0.2 — 2023-04-01
- 0.0.1 — 2023-04-01

## README

# easy-horizontal-scroller-svelte

A lightweight and user-friendly library for implementing horizontal scrolling on both web and mobile UIs. This intuitive scroller relies solely on the drag feature, providing a seamless and responsive experience across various devices.

# Install

```sh
npm install @cloudparker/easy-horizontal-scroller-svelte --save-dev
```
# Screenshot
<img src="https://raw.githubusercontent.com/paramanandapradhan/easy-horizontal-scroller-svelte/main/static/easy-horizontal-scroller-svelte.webp" width="340">

# Usage

```js
<script>
	import EasyHorizontalScroller from '@cloudparker/easy-horizontal-scroller-svelte';
</script>

<EasyHorizontalScroller height="136px">
	{#each Array(100) as _, index}
		<div class="item" on:click={()=> console.log("clicked")}>{index}</div>
	{/each}
</EasyHorizontalScroller>

<style>
	.item {
		background-color: aquamarine;
		min-width: 128px;
		min-height: 128px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 4px;
		border: 1px solid #d1d1d1;
		border-radius: 5px;
	}
</style>
```

# Props

### height:string

_Required_

Height of the scroller e.g `136px`

---
_Source: https://npm.io/package/@cloudparker/easy-horizontal-scroller-svelte · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
