تخطي إلى المحتوى
Corex

Pagination · Patterns

Controlled page, link patch, server events, and client-only updates.

Controlled

Current page: 1

Link patch

  • Patch navigation

    data-phx-link on every page control anchor.

  • Page size in the query

    ?page=2&page_size=5 keeps bookmarkable state.

  • Corex in Phoenix 1.8

    LiveView, HEEx, and hooks wired for production apps.

  • One more post

    Enough items to paginate comfortably.

Trigger server

  • Getting started with Corex

    Tokens, components, and zero custom CSS.

  • Pagination with LiveView patch

    Link mode updates the URL; the server loads the next slice.

  • Design tokens in practice

    Spacing, ink, and layer colors stay consistent across themes.

  • BEM modifiers on buttons

    button button--accent button--lg — no new class names.

Trigger client

  • Getting started with Corex

    Tokens, components, and zero custom CSS.

  • Pagination with LiveView patch

    Link mode updates the URL; the server loads the next slice.

  • Design tokens in practice

    Spacing, ink, and layer colors stay consistent across themes.

  • BEM modifiers on buttons

    button button--accent button--lg — no new class names.