# kodobe-react-pagination

> kodobe react pagination

Latest version **2.1.0** (published 2021-02-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install kodobe-react-pagination
pnpm add kodobe-react-pagination
yarn add kodobe-react-pagination
bun add kodobe-react-pagination
```

## 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 | 2.1.0 |
| Published | 2021-02-26 |
| First published | 2021-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | adefemi |

## Links

- npm: https://www.npmjs.com/package/kodobe-react-pagination
- npm.io page: https://npm.io/package/kodobe-react-pagination

## Recent versions

- 2.1.0 (latest) — 2021-02-26
- 2.0.9 — 2021-02-16
- 2.0.1 — 2021-02-11
- 2.0.0 — 2021-02-10
- 1.1.0 — 2021-02-02
- 1.0.2 — 2021-02-01
- 1.0.1 — 2021-02-01

## README

# Kodobe React Pagination

This is a simple react pagination package.

## Install

`npm install kodobe-react-pagination`

or

`yarn add kodobe-react-pagination`

## Setup

`import Pagination from 'kodobe-react-pagination';`

## Usage

    import Pagination from "kodobe-react-pagination";

    function App() {
        return (
            <div>
                <h3>Here is how to use a pagination</h3>
                <Pagination
                    totalPage={100}
                    currentPage={1}
                    maxPageShown={5}
                    onChangePage={(p) => console.log(p)}
                />
            </div>
        );
    }

## Options

- **currentPage** : active page of type number (Required)
- **totalPage** : total count of elements, type is number (default=20)
- **itemPerPage** : item to show perpage, type is number (default=5)
- **maxPageShown** : maximum pagination counter, type is number
- **onChangePage** : function triggered with selected page (Required)
- **className** : string
- **style** : object

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