# react-snap-slider

> Tiny react slider, based on css scroll-snap-points

Latest version **2.1.0** (published 2019-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-snap-slider
pnpm add react-snap-slider
yarn add react-snap-slider
bun add react-snap-slider
```

## 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.1.0 |
| Published | 2019-12-02 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 69.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vladislav Shkodin |
| Maintainers | smashercosmo |

## Links

- npm: https://www.npmjs.com/package/react-snap-slider
- Repository: https://github.com/smashercosmo/react-snap-slider
- Homepage: https://github.com/smashercosmo/react-snap-slider#readme
- Issues: https://github.com/smashercosmo/react-snap-slider/issues
- npm.io page: https://npm.io/package/react-snap-slider

## Recent versions

- 2.1.0 (latest) — 2019-12-02
- 2.0.2 — 2019-11-22
- 2.0.1 — 2019-11-22
- 2.0.0 — 2019-11-21
- 1.0.5 — 2019-11-21
- 1.0.4 — 2019-11-21
- 1.0.3 — 2019-11-21
- 1.0.2 — 2019-11-19
- 1.0.1 — 2019-11-19
- 1.0.0 — 2019-11-19

## README

# react-snap-slider

Tiny react slider, based on css scroll-snap-points 

## Usage

```
npm install react-snap-slider --save-exact
```

```js
import React from 'react'
import { SnapSlider } from 'react-snap-slider'

function App() {
  const itemStyles = {
    height: 200,
    borderLeft: '1px solid green',
    borderRight: '1px solid blue',
    backgroundColor: 'pink',
  }

  return (
    <div>
      <SnapSlider columns={6}>
        <div style={itemStyles}>1</div>
        <div style={itemStyles}>2</div>
        <div style={itemStyles}>3</div>
        <div style={itemStyles}>4</div>
        <div style={itemStyles}>5</div>
        <div style={itemStyles}>6</div>
        <div style={itemStyles}>7</div>
        <div style={itemStyles}>8</div>
        <div style={itemStyles}>9</div>
        <div style={itemStyles}>10</div>
        <div style={itemStyles}>11</div>
        <div style={itemStyles}>12</div>
      </SnapSlider>
    </div>
  )
}

export default App
```

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