Pagination

Table (gem footer pager) Cards (kaminari default pager)
How this page is built the gem renders it — this is all you write

Pagination works in a custom layout too. You still paginate in the controller (kaminari); the cards layout feeds collection.page_scope to kaminari's own paginate helper, so the pager below is kaminari's default markup — styling it is your job, as always with kaminari.

app/controllers/books_controller.rb
@query = CrudComponents::Query.new(Book, params, fieldset: :index, ability: current_ability)
@books = @query.apply(Book.all).page(params[:page]).per(8)   # kaminari
app/views/crud_components/layouts/_cards.html.erb
<%= paginate collection.page_scope %>   <%# kaminari's own pager, inside your card layout %>
app/views/pagination/index.html.erb
<%= crud_collection @books, query: @query, layout: :cards %>

Read more: Pagination  ·  Add a layout

The Endless Signal 73
Author names
Frank Herbert, Iain Banks, and Margaret Atwood
Genre
Scifi
Price
19.39 €
Publisher
Del Rey
Active
✓
The Ancient Ocean 74
Author names
Margaret Atwood
Genre
Nonfiction
Price
14.70 €
Publisher
Gollancz
Active
✓
The Hidden Tower 75
Author names
Frank Herbert
Genre
Scifi
Price
5.34 €
Publisher
Vintage
Active
✓
The Luminous Engine 76
Author names
Mary Shelley
Genre
Fiction
Price
34.79 €
Publisher
Ace
Active
✓
The Luminous Tower 77
Author names
Kim Robinson, Frank Herbert, and Joe Abercrombie
Genre
Scifi
Price
28.81 €
Publisher
Vintage
Active
✓
The Hidden Engine 78
Author names
Iain Banks
Genre
Scifi
Price
8.00 €
Publisher
—
Active
✗
The Hidden Dune 79
Author names
Martha Wells and Ursula Le Guin
Genre
Fiction
Price
24.25 €
Publisher
Gollancz
Active
✓
The Ancient Engine 80
Author names
Martha Wells and Kim Robinson
Genre
Nonfiction
Price
17.29 €
Publisher
—
Active
✓