Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nextjs-pagination

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nextjs-pagination - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

2

package.json
{
"name": "nextjs-pagination",
"version": "2.2.0",
"version": "2.3.0",
"description": "A customizable pagination component for Next.js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -39,3 +39,3 @@ # Nextjs-Pagination

<Pagination
onPageChange={(page: number) => setCurrentPage(page)}
onPageChange={setCurrentPage}
totalItems={100}

@@ -52,3 +52,3 @@ itemsPerPage={10}

<Pagination
onPageChange={(page) => setCurrentPage(page)}
onPageChange={setCurrentPage}
totalItems={100}

@@ -106,14 +106,14 @@ itemsPerPage={10}

return (
<Pagination
totalItems={500}
itemsPerPage={20}
onPageChange={(page: number) => setCurrentPage(page)}
color="green"
shape="circle"
buttonCount={7}
showNextPrev={true}
showFirstLast={true}
onSuccess={(page) => console.log("Current page: ", page)}
onError={(error) => console.error(error)}
/>
<Pagination
totalItems={500}
itemsPerPage={20}
onPageChange={setCurrentPage}
color="green"
shape="circle"
buttonCount={7}
showNextPrev={true}
showFirstLast={true}
onSuccess={(page: any) => console.log("Current page: ", page)}
onError={(error: any) => console.error(error)}
/>
);

@@ -135,3 +135,3 @@ ```

itemsPerPage={20}
onPageChange={(page) => setCurrentPage(page)}
onPageChange={setCurrentPage}
color="green"

@@ -138,0 +138,0 @@ shape="circle"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc