shadcn registry

Inertia Pagination

A compact paginator for Laravel and Inertia responses, designed to drop into a shadcn-based UI.

Sample UI

Renders previous and next controls, disables empty URLs, and treats ellipsis entries as passive markers.

Installation

Add the component from this registry with your preferred package manager.

pnpm dlx shadcn@latest add https://micto-ui-kit.misangono.net/r/inertia-pagination.json

Usage

Pass the backend paginator `links` array directly. In an Inertia app, supply `LinkComponent=Link` so navigation keeps client-side state and scroll behavior.

import { Link } from "@inertiajs/react"
import { InertiaPagination } from "@/components/inertia-pagination"

<InertiaPagination links={links} LinkComponent={Link} />