{"id":13496559,"url":"https://github.com/react-component/pagination","last_synced_at":"2025-05-13T15:09:58.183Z","repository":{"id":34842109,"uuid":"38832708","full_name":"react-component/pagination","owner":"react-component","description":"React Pagination","archived":false,"fork":false,"pushed_at":"2025-04-21T21:53:34.000Z","size":24122,"stargazers_count":672,"open_issues_count":55,"forks_count":330,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-23T18:55:52.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pagination-react-component.vercel.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react-component.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"ant-design","patreon":null,"open_collective":"ant-design","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2015-07-09T16:39:00.000Z","updated_at":"2025-04-16T00:45:13.000Z","dependencies_parsed_at":"2023-02-12T05:17:22.639Z","dependency_job_id":"f942e233-fb16-47fc-b226-5ecbfe191493","html_url":"https://github.com/react-component/pagination","commit_stats":{"total_commits":631,"total_committers":144,"mean_commits":4.381944444444445,"dds":0.6513470681458002,"last_synced_commit":"8a2b7fa3869922b47d155156675cfc6b84082878"},"previous_names":[],"tags_count":209,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fpagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fpagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fpagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fpagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251830601,"owners_count":21650807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:01:51.616Z","updated_at":"2025-05-13T15:09:53.150Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","readme":"# rc-pagination\n\nReact Pagination Component.\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-pagination.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-pagination\n[github-actions-image]: https://github.com/react-component/pagination/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/pagination/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/pagination/master.svg?style=flat-square\n[codecov-url]: https://codecov.io/gh/react-component/pagination/branch/master\n[david-url]: https://david-dm.org/react-component/pagination\n[david-image]: https://david-dm.org/react-component/pagination/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/pagination?type=dev\n[david-dev-image]: https://david-dm.org/react-component/pagination/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-pagination.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-pagination\n[bundlephobia-url]: https://bundlephobia.com/result?p=rc-pagination\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-pagination\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## Examples\n\nOnline example: `https://pagination-react-component.vercel.app`\nLocal example: `npm run start` then `http://localhost:9001`\n\n## Install\n\n[![rc-pagination](https://nodei.co/npm/rc-pagination.png)](https://npmjs.org/package/rc-pagination)\n\n## Usage\n\n```js\nimport Pagination from 'rc-pagination';\n\nReactDOM.render(\u003cPagination /\u003e, container);\n```\n\n## API\n\n// prettier-ignore\n| Parameter | Description | Type | Default |\n| --- | --- | --- | --- |\n| disabled | disable pagination | Bool | - |\n| align | align of pagination | start \\| center \\| end | undefined |\n| defaultCurrent | uncontrolled current page | Number | 1 |\n| current | current page | Number | undefined |\n| total | items total count | Number | 0 |\n| defaultPageSize | default items per page | Number | 10 |\n| pageSize | items per page | Number | 10 |\n| onChange | page change callback | Function(current, pageSize) | - |\n| showSizeChanger | show pageSize changer | boolean \\| [SelectProps](https://github.com/react-component/select/blob/561f8b7d69fd5dd2cd7d917c88976cca4e539a9d/src/Select.tsx#L112) | `false` when total less than `totalBoundaryShowSizeChanger`, `true` when otherwise |\n| totalBoundaryShowSizeChanger | when total larger than it, `showSizeChanger` will be true | number | 50 |\n| pageSizeOptions | specify the sizeChanger selections | Array\u003cString\u003e | ['10', '20', '50', '100'] |\n| onShowSizeChange | pageSize change callback | Function(current, size) | - |\n| hideOnSinglePage | hide on single page | Bool | false |\n| showPrevNextJumpers | show jump-prev, jump-next | Bool | true |\n| showQuickJumper | show quick goto jumper | Bool / Object | false / {goButton: true} |\n| showTotal | show total records and range | Function(total, [from, to]) | - |\n| className | className of pagination | String | - |\n| simple | when set, show simple pager | Bool / { readOnly?: boolean; } | - |\n| locale | to set l10n config | Object | [zh_CN](https://github.com/react-component/pagination/blob/master/src/locale/zh_CN.js) |\n| style | the style of pagination | Object | {} |\n| showLessItems | show less page items | Bool | false |\n| showTitle | show page items title | Bool | true |\n| itemRender | custom page item renderer | Function(current, type: 'page' \\| 'prev' \\| 'next' \\| 'jump-prev' \\| 'jump-next', element): React.ReactNode \\| `(current, type, element) =\u003e element` | |\n| prevIcon | specify the default previous icon | ReactNode \\| (props: PaginationProps) =\u003e ReactNode | |\n| nextIcon | specify the default next icon | ReactNode \\| (props: PaginationProps) =\u003e ReactNode | |\n| jumpPrevIcon | specify the default previous icon | ReactNode \\| (props: PaginationProps) =\u003e ReactNode | |\n| jumpNextIcon | specify the default next icon | ReactNode \\| (props: PaginationProps) =\u003e ReactNode | |\n\n## License\n\nrc-pagination is released under the MIT license.\n","funding_links":["https://github.com/sponsors/ant-design","https://opencollective.com/ant-design"],"categories":["TypeScript","UI Components"],"sub_categories":["Pagination"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fpagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fpagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fpagination/lists"}