@ndla/pager
v5.0.50-alpha.0
Published
Pager component for NDLA
Downloads
95
Keywords
Readme
ndla-pager
A pager component
Installation
yarn add @ndla/pager
npm install @ndla/pager
Usage
Styling
Basic example
<Pager page={2} lastPage={4} query={{ term: "Medier" }} pathname="#" />
Example with custom component
<Pager page={1} lastPage={3} query={{ term: "Medier" }} pageItemComponentClass="button" pathname="#" />