PUI.Pagination renders links but does not load data or own URL state. The
host supplies a page_url callback and chooses href, navigate, or patch.
Eight pages
heex
<.pagination
id="docs-pagination"
current_page={3}
total_pages={8}
page_url={@demo_page_url}
link_mode="href"
/>
Custom labels
heex
<.pagination
id="docs-pagination-custom"
current_page={2}
total_pages={4}
page_url={@demo_page_url}
link_mode="href"
>
<:previous>Back</:previous>
<:next>Forward</:next>
<:page :let={page}>Page {page}</:page>
</.pagination>
The previous, next, and page slots can replace the default labels and semantic chevrons.