Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

bpk-component-pagination

Package Overview
Dependencies
4
Maintainers
7
Versions
401
Issues
File Explorer

Advanced tools

bpk-component-pagination

Backpack pagination component.

    5.1.2latest
    Github

Version published
Maintainers
7
Weekly downloads
642
increased by22.52%

Weekly downloads

Readme

Source

bpk-component-pagination

Backpack pagination component.

Installation

npm install bpk-component-pagination --save-dev

Usage

import React from 'react'; import BpkPagination from 'bpk-component-pagination'; const Pagination = () => ( <BpkPagination pageCount={20} selectedPageIndex={0} onPageChange={pageIndex => alert(`page ${pageIndex + 1}`)} previousLabel="previous" nextLabel="next" visibleRange={3} pageLabel={(page, isSelected) => `page ${page}`} /> );

Props

PropertyPropTypeRequiredDefault Value
pageCountnumbertrue-
selectedPageIndexnumbertrue-
previousLabelstringtrue-
nextLabelstringtrue-
paginationLabelstringtrue-
pageLabelfunctrue-
onPageChangefuncfalsenull
visibleRangenumberfalse3
classNamestringfalsenull

Theme Props

  • buttonSecondaryTextColor
  • buttonSecondaryHoverTextColor
  • buttonSecondaryActiveTextColor
  • buttonSecondaryBorderColor
  • buttonSecondaryHoverBorderColor
  • buttonSecondaryActiveBorderColor
  • buttonSecondaryBackgroundColor
  • buttonSecondaryHoverBackgroundColor
  • buttonSecondaryActiveBackgroundColor
  • paginationNudgerActiveColor
  • paginationNudgerColor
  • paginationNudgerHoverColor
  • paginationSelectedBackgroundColor

FAQs

Last updated on 30 Sep 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc