# `Cinder.Renderers.Pagination`
[🔗](https://github.com/sevenseacat/cinder/blob/v0.16.0/lib/cinder/renderers/pagination.ex#L1)

Shared pagination component used by Table, List, and Grid renderers.

Supports two pagination modes:
- `Ash.Page.Offset` - Traditional page numbers with jump-to-page
- `Ash.Page.Keyset` - Cursor-based with prev/next navigation (faster for large datasets)

Uses `AshPhoenix.LiveView` helpers for working with Ash.Page structs directly.

# `render`

Renders pagination controls with page navigation and optional page size selector.

Handles the wrapper div and conditional display internally.
Returns empty content if pagination should not be shown.

## Required assigns
- `page` - An `Ash.Page.Offset`, `Ash.Page.Keyset`, or nil
- `page_size_config` - Map with page size configuration
- `theme` - Theme configuration map
- `myself` - LiveComponent reference for event targeting
- `show_pagination` - Boolean to enable/disable pagination (default: true)

# `show_pagination?`

Checks if pagination controls should be shown based on page.

Returns true if there are more results than fit on one page.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
