LiveComponent that renders pagination controls.
Provides:
- Page info text ("Showing 26-50 of 127")
- Per-page selector dropdown
- Prev/Next buttons
- Configurable page number stepper
Notifies the parent via {:livefilter, :page_changed, params} when pagination changes.
Example
<.live_component
module={LiveFilter.Paginator}
id="pagination"
pagination={@pagination}
max_pages={5}
/>Or using the convenience function:
<LiveFilter.paginator pagination={@pagination} max_pages={5} />