Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ausbom/pagination

AusBOM292MIT0.1.44TypeScript support: included

Pagination allows the user to easily navigate between paginated content.

readme

@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"
/>