Ghostcn
Skip to Content
ComponentsLayout

Pagination

Accessible, responsive replacement for Ghost’s native pagination markup.

Install

npx ghostcn@1.4.0 add pagination --skip-existing

Usage

The native {{pagination}} helper picks up partials/pagination.hbs automatically. For styling parameters, use the direct call below instead of rendering both. Pass the current collection’s pagination object.

{{> "pagination" pagination}}

Customize this instance

{{> "pagination" pagination class="my-10" buttonClass="rounded-xl"}}

Styling parameters

ParameterTarget
classComponent root — .ghcn-pagination
buttonClass.ghcn-button
statusClass.ghcn-pagination__status

Styling parameters affect only elements that render. See Style component instances for specificity, dark mode, and preserving customizations.

Installed files

  • partials/pagination.hbs
  • assets/css/components/pagination.css

View the registry source

Edit this page on GitHub

Was this helpful?

On this page