{"id":19404097,"url":"https://github.com/react-bootstrap/pagination","last_synced_at":"2025-04-24T08:32:38.090Z","repository":{"id":66029738,"uuid":"89399660","full_name":"react-bootstrap/pagination","owner":"react-bootstrap","description":"A batteries included pagination component using bootstrap styles","archived":false,"fork":false,"pushed_at":"2023-12-15T14:26:24.000Z","size":51,"stargazers_count":6,"open_issues_count":1,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-09-19T01:39:42.387Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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-bootstrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-04-25T19:40:12.000Z","updated_at":"2023-10-25T00:15:54.000Z","dependencies_parsed_at":"2024-06-18T19:49:25.470Z","dependency_job_id":"46c0d428-0406-482a-90be-695ce3d3f435","html_url":"https://github.com/react-bootstrap/pagination","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-bootstrap%2Fpagination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-bootstrap%2Fpagination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-bootstrap%2Fpagination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-bootstrap%2Fpagination/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-bootstrap","download_url":"https://codeload.github.com/react-bootstrap/pagination/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223870304,"owners_count":17217345,"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-11-10T11:33:00.705Z","updated_at":"2024-11-10T11:33:01.403Z","avatar_url":"https://github.com/react-bootstrap.png","language":"JavaScript","readme":"# pagination\n\nA batteries included pagination component using bootstrap styles. This was\nextracted from an older version of react-bootstrap as a migration path.\n\n\u003e **NOT ACTIVELY MAINTAINED:** We recommend you eventually migrate to a more\nrobust, better maintained solution, such as react-ultimate-pagination\n\nIt is a drop-in replacement for the old Pagination component in react-bootstrap (\u003c= 0.30.x).\n\n## Alternatives\n\nFor users of newer versions of React-Bootstrap we recommend something simpler and more dedicated to providing proper pagination logic. One good general option is react-ultimate-pagination which can be used with react-bootstrap components easily like:\n\n```js\nimport React from 'react';\nimport Pagination from 'react-bootstrap/lib/Pagination';\nimport { createUltimatePagination, ITEM_TYPES } from 'react-ultimate-pagination';\n \nexport default createUltimatePagination({\n  WrapperComponent: Pagination,\n  itemTypeToComponent: {\n    [ITEM_TYPES.PAGE]: ({value, isActive, onClick}) =\u003e (\n      \u003cPagination.Item active={isActive} onClick={onClick}\u003e{value}\u003c/Pagination.Item\u003e\n    ),\n    [ITEM_TYPES.ELLIPSIS]: ({ isActive, onClick }) =\u003e (\n      \u003cPagination.Ellipsis disabled={isActive} onClick={onClick} /\u003e\n    ),\n    [ITEM_TYPES.FIRST_PAGE_LINK]: ({ isActive, onClick }) =\u003e (\n      \u003cPagination.First disabled={isActive} onClick={onClick} /\u003e\n    ),\n    [ITEM_TYPES.PREVIOUS_PAGE_LINK]: ({ isActive, onClick }) =\u003e (\n      \u003cPagination.Prev disabled={isActive} onClick={onClick} /\u003e\n    ),\n    [ITEM_TYPES.NEXT_PAGE_LINK]: ({ isActive, onClick }) =\u003e (\n      \u003cPagination.Next disabled={isActive} onClick={onClick} /\u003e\n    ),\n    [ITEM_TYPES.LAST_PAGE_LINK]: ({ isActive, onClick }) =\u003e (\n      \u003cPagination.Last disabled={isActive} onClick={onClick} /\u003e\n    ),\n  },\n});\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-bootstrap%2Fpagination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-bootstrap%2Fpagination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-bootstrap%2Fpagination/lists"}