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 Luminous Tower 89
Author names
Joe Abercrombie, Liu Cixin, and Margaret Atwood
Genre
Nonfiction
Price
22.68 €
Publisher
Ace
Active
The Dispossessed Tower 90
Author names
Mary Shelley and Liu Cixin
Genre
Scifi
Price
33.21 €
Publisher
Gollancz
Active
The Quiet Signal 91
Author names
Kim Robinson
Genre
Scifi
Price
9.09 €
Publisher
Del Rey
Active
The Endless Ocean 92
Author names
Liu Cixin
Genre
Scifi
Price
42.02 €
Publisher
DAW
Active
The Luminous Empire 93
Author names
Ann Leckie
Genre
Scifi
Price
14.02 €
Publisher
Ace
Active
The Distant Station 94
Author names
Joe Abercrombie
Genre
Scifi
Price
19.41 €
Publisher
Orbit
Active
The Hidden Door 95
Author names
Mary Shelley
Genre
Fiction
Price
21.22 €
Publisher
Baen
Active
The Broken Mirror 96
Author names
Stanisław Lem
Genre
Fiction
Price
34.38 €
Publisher
Vintage
Active