@ausbom/pagination
TypeScript icon, indicating that this package has built-in type declarations

0.1.42 • Public • Published

@ausbom/pagination

Pagination allows the user to easily navigate between paginated content.

Installation

npm install @ausbom/pagination

Usage

import Pagination from '@ausbom/pagination'
import React from 'react'

<Pagination
  onChange={handleChange}
  currentPage={currentPage}
  numPages={10}
  generateLabel={page => `Page ${n}`}
  generateA11yLabel={page => `Page ${n} of 10`}
  generateHref={page => `/page/${n}`}
  nextLabel="Go to next page"
  prevLabel="Go to previous page"
/>

Readme

Keywords

none

Package Sidebar

Install

npm i @ausbom/pagination

Weekly Downloads

20

Version

0.1.42

License

MIT

Unpacked Size

11.2 kB

Total Files

7

Last publish

Collaborators

  • shaid
  • bom-hawyangpeng
  • digitaldeveloper-bom
  • george-cheng-bom
  • pmurator-bom