# uxcore-pagination

> pagination ui component for react

Latest version **0.8.5** (published 2023-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install uxcore-pagination
pnpm add uxcore-pagination
yarn add uxcore-pagination
bun add uxcore-pagination
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.8.5 |
| Published | 2023-03-03 |
| First published | 2015-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 70.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | taoqili, vincent.bian, eternalsky, surfacew, ex90rts, shanchao, howardwong |
| Keywords | react, react-pagination, react-uxcore-pagination, uxcore-pagination |

## Links

- npm: https://www.npmjs.com/package/uxcore-pagination
- Repository: https://github.com/uxcore/uxcore-pagination
- Homepage: https://github.com/uxcore/uxcore-pagination#readme
- Issues: http://github.com/uxcore/uxcore-pagination/issues
- npm.io page: https://npm.io/package/uxcore-pagination

## Dependencies (7)

- [classnames](https://npm.io/package/classnames.md) ^2.1.5
- [prop-types](https://npm.io/package/prop-types.md) 15.x
- [uxcore-icon](https://npm.io/package/uxcore-icon.md) *
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.0
- [uxcore-button](https://npm.io/package/uxcore-button.md) *
- [uxcore-select2](https://npm.io/package/uxcore-select2.md) *
- [react-lifecycles-compat](https://npm.io/package/react-lifecycles-compat.md) ^3.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.8.5 (latest) — 2023-03-03
- 0.8.4 — 2023-02-27
- 0.8.3 — 2020-08-17
- 0.7.10 — 2019-10-30
- 0.8.2 — 2019-09-26
- 0.7.9 — 2019-09-26
- 0.8.1 — 2019-03-27
- 0.8.0 — 2019-03-26
- 0.7.8 — 2019-03-01
- 0.7.7 — 2019-02-26
- 0.7.6 — 2019-01-03
- 0.7.5 — 2018-10-08
- 0.7.4 — 2018-09-27
- 0.7.3 — 2018-09-27
- 0.7.2 — 2018-09-26
- … 31 more at https://npm.io/package/uxcore-pagination/versions

## README

# uxcore-pagination

pagination ui component for react  
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![Dependency Status][dep-image]][dep-url]
[![devDependency Status][devdep-image]][devdep-url] 
[![NPM downloads][downloads-image]][npm-url]
[![Sauce Test Status][sauce-image]][sauce-url]

[npm-image]: http://img.shields.io/npm/v/uxcore-pagination.svg?style=flat-square
[npm-url]: http://npmjs.org/package/uxcore-pagination
[travis-image]: https://img.shields.io/travis/uxcore/uxcore-pagination.svg?style=flat-square
[travis-url]: https://travis-ci.org/uxcore/uxcore-pagination
[coveralls-image]: https://img.shields.io/coveralls/uxcore/uxcore-pagination.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/uxcore/uxcore-pagination?branch=master
[dep-image]: http://img.shields.io/david/uxcore/uxcore-pagination.svg?style=flat-square
[dep-url]: https://david-dm.org/uxcore/uxcore-pagination
[devdep-image]: http://img.shields.io/david/dev/uxcore/uxcore-pagination.svg?style=flat-square
[devdep-url]: https://david-dm.org/uxcore/uxcore-pagination#info=devDependencies
[downloads-image]: https://img.shields.io/npm/dm/uxcore-pagination.svg
[sauce-image]: https://saucelabs.com/browser-matrix/uxcore-pagination.svg
[sauce-url]: https://saucelabs.com/u/uxcore-pagination

#### setup develop environment

```sh
$ git clone https://github.com/uxcore/uxcore-pagination
$ cd uxcore-pagination
$ npm install
$ npm start
```

## Usage

```js
var Pagination = require('uxcore-pagination');
React.render(
	<Pagination onChange={onChange} total={50} />, document.getElementById('target'));
```

### demo
http://uxcore.github.io/uxcore/components/pagination/

## API

## Props

|参数|说明|类型|默认值|
|---|----|---|------|
|locale|语言(zh-cn/en-us)|string|zh-cn|
|current|当前页数|number|1|
|total|数据总数|number/jsx|0|
|totalSizeOffset|数据总数偏移，会在计算分页时加在total上进行计算，用于占位|number|0|
|pageSize|每页条数|number|10|
|onChange|页码改变的回调，参数是改变后的页码|function|noop|
|showTotal|是否显示共多少条|boolean|false|
|showQuickJumper|是否可以快速跳转至某页|bool|false|
|showSizeChanger|是否可以改变 pageSize|bool|false|
|sizeOptions|sizeChanger 显示的可选 pageSize|array|[10, 20, 30, 40]|
|onShowSizeChange|pageSize 变化的回调|function|noop|
|className|当为「mini」时，是小尺寸分页|string||
|simple|当添加该属性时，显示为简单分页|object|无|
|getSelectPopupContainer|指定下拉选择框渲染的容器|function():HTML Element|插在 body 下的一个 div|

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