# reactnator

> The easier way to paginate things

Latest version **1.0.3** (published 2018-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install reactnator
pnpm add reactnator
yarn add reactnator
bun add reactnator
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-04-24 |
| First published | 2018-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | IQ-Tech |
| Maintainers | giioohbernini |

## Links

- npm: https://www.npmjs.com/package/reactnator
- Repository: https://github.com/IQ-tech/reactnator
- Homepage: https://github.com/IQ-tech/reactnator#readme
- Issues: https://github.com/IQ-tech/reactnator/issues
- npm.io page: https://npm.io/package/reactnator

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^16.0.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.0.0
- [recompose](https://npm.io/package/recompose.md) ^0.26.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [scroll-to-target](https://npm.io/package/scroll-to-target.md) ^0.0.8

## Recent versions

- 1.0.3 (latest) — 2018-04-24
- 1.0.2 — 2018-04-23
- 1.0.1 — 2018-04-01
- 1.0.0 — 2018-03-26

## README

# Reactnator

The easier way to paginate things

### Installing

In your project folder, type on console

`yarn add reactnator`

or you can use NPM aswell

`npm i reactnator`

### Dependencies

* React
* ReactDOM
* Recompose
* scroll-to-target

### Api Reference

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| total | number | `1` | total of pages |
| currentPage | number | `1` | page number that will receive `active` class |
| onChange | function | `page => console.log(page)`  | onChange handler, that receive `page` with new current page value |
| scrollTo | object | `false` | allows scroll to some point on click, this object receive these following values `{ selector: #valid-dom-element, speed: 1, offset: 0}` |
| type | string | `button` | this prop will decide how type of pagination you want; button, link or history (not yet)  |
| link | string | `#` | URL who reactnator will add pagination's number. Example with default values: `#1` |
| pageNumberStyle | `string` | `reactnator__page-number` | optional style to page numbers |
| activePageStyle | `string` | `reactnator__page-number--active` | optional style to active page number |

### License

Licensed under the MIT license.

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