N
neokit

Pagination

A row of page buttons built with DaisyUI's join + btn pattern. Supports prev/next controls, sizes, outline variant, smart ellipsis windowing, and link-based rendering.

Basic

Ten pages, page 4 active. Prev/next arrows shown by default.

pagination basic

Without prev / next

Set showPrevNext= to hide the « / » controls.

pagination no prev/next

First page (prev disabled)

When current=1 the « button is automatically disabled.

pagination first page

Last page (next disabled)

When current equals total the » button is automatically disabled.

pagination last page

Sizes

Five sizes — xs through xl.

pagination sizes
xs
sm
md
lg
xl

Outline variant

Pass variant="outline" to use outlined buttons for inactive pages.

pagination outline

As links

Pass an href function to render <a> tags — useful for server-side pagination with URL query params.

pagination as links

Smart ellipsis

For large page counts the component always shows first, last, and ±2 around the current page, collapsing the rest into gaps.

pagination ellipsis
page 1
page 5
page 10
page 15
page 20

Few pages (no ellipsis)

When total ≤ 7 all pages are shown — no gaps needed.

pagination few pages

In a table footer

Common real-world pattern: pagination below a data table.

pagination table footer
# Name Role Status
1 Alice Chen Engineer Active
2 Bob Torres Designer Active
3 Carol White Manager On leave
4 David Kim Engineer Active
5 Eva Müller Marketing Inactive
Showing 1–5 of 38 results