npm.io
0.8.0-alpha.112 • Published 11 months ago

@blaze-react/pagination

Licence
GPL-3.0
Version
0.8.0-alpha.112
Deps
0
Size
2.8 MB
Vulns
0
Weekly
0

Description

The Pagination component enables the user to select a specific page from a range of pages.

Usage

  • Required
<Pagination
  totalItems={100}
  currentPage={1}
  visiblePages={10}
  onPageChange={(page: Number) => {
    console.log(page);
  }}
/>

API

Pagination can receive a number of props as follow:
NAME TYPE DEFAULT
totalItems Number required
visiblePages Number 10
onPageChange Function (page) => {}
currentPage Number 1
itemsPerPage Number 10