# mui-pagination

> A pagination component for React built with material-ui v1.

Latest version **1.0.5** (published 2019-03-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install mui-pagination
pnpm add mui-pagination
yarn add mui-pagination
bun add mui-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 | 1.0.5 |
| Published | 2019-03-01 |
| First published | 2019-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ismail Demirbilek |
| Maintainers | dbtek |
| Keywords | material, material-ui, pagination, react, component, paginate |

## Links

- npm: https://www.npmjs.com/package/mui-pagination
- Repository: https://github.com/dbtek/mui-pagination
- npm.io page: https://npm.io/package/mui-pagination

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^16.7.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2
- [@material-ui/lab](https://npm.io/package/@material-ui/lab.md) ^3.0.0-alpha.29
- [@material-ui/icons](https://npm.io/package/@material-ui/icons.md) ^3.0.2
- [pagination-generator-js](https://npm.io/package/pagination-generator-js.md) ^1.0.2

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-03-01
- 1.0.4 — 2019-02-08
- 1.0.3 — 2019-02-07
- 1.0.2 — 2019-02-07
- 1.0.1 — 2019-02-01
- 1.0.0 — 2019-02-01

## README

<div align="center">
  <h2>mui-pagination</h2>
  <p>:one::two::three:</p>
  <p>
    A pagination component for React built with material-ui. Makes use of <a href="https://material-ui.com/lab/toggle-button/">ToggleButton</a> with <a href="https://github.com/zarkoselak/pagination-generator-js/">pagination-generator-js</a> by Zarko Selak.
  </p>
</div>

### Install
```bash
$ npm i -S mui-pagination
# or with yarn
$ yarn add mui-pagination
```

### Usage
```js
import React, { Component } from 'react'
import Pagination from 'mui-pagination'

class PaginatedList extends Component {
  state = {
    page: 1,
    totalItems: 100,
    itemsPerPage: 10
  }

  handlePageChange (page) {
    this.setState({ page })
  }

  render () {
    const { page, totalItems, itemsPerPage } = this.state
    return (
      <div>
        {/* items */}
        <Pagination
          page={page}
          totalItems={totalItems}
          itemsPerPage={itemsPerPage}
          onChange={(e, val) => this.handlePageChange(val)}
        />
      </div>
    )
  }
}
```

### API

**Props***  
`totalItems` `{Number} *`  
Total number of items.  

`itemsPerPage` `{Number} *`  
Items to show on each page.  

`page` `{Number} *`  
Current page number.  

### Author
Ismail Demirbilek - [@dbtek](https://twitter.com/dbtek)

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