ComponentsLayout
Pagination
Accessible, responsive replacement for Ghost’s native pagination markup.
Install
npx ghostcn@1.4.0 add pagination --skip-existingUsage
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
| Parameter | Target |
|---|---|
class | Component 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.hbsassets/css/components/pagination.css
Was this helpful?