Pagination

Description

A versatile pagination component for managing query string parameters in Next.js applications. It leverages client-side hooks like `useRouter`, `useSearchParams`, and `usePathname` to handle navigation and can also read server-side search parameters for seamless integration with Drizzle Next. There are a number of optional configurations to customize the pagination controls.

Preview

Installation

Add component:

Usage

Code

components/ui/pagination.tsx