Pagination

Attribute Type Documentation Default Value
Required page * :integer
Required total_pages * :integer
patch_fn :any

function taking page number and returning a patch path

on_click :string

optional phx-click event for page buttons

target :any

optional phx-target for on_click

prev_label :string "Previous page"
next_label :string "Next page"
page_label :string "Page %{page}"
current_page_label :string

accessible name of the current page's number, %{page} replaced; defaults to page_label followed by ", current page"

status_label :string

visually hidden status announced when the page changes, %{page} and %{total} replaced

"Page %{page} of %{total}"
aria_label :string "Pagination"
size :string

the size of the buttons, as button/1; nil is md

class :any
rest :global