Skip to content

Bootstrap 5 compatible styles for Kaminari. Tested on Bootstrap 5.0.1.

License

Notifications You must be signed in to change notification settings

felipecalvo/bootstrap5-kaminari-views

 
 

Repository files navigation

Bootstrap 5 Kaminari Views

Bootstrap 5 compatible styles for Kaminari. Tested on Bootstrap 5.0.1.

Installation

Add to your Gemfile

  gem 'kaminari'
  gem 'bootstrap5-kaminari-views'

And run in console

bundle install

Usage

Render pagination with this gem's theme:

paginate @users, theme: 'bootstrap-5'

You can also add specific pagination and nav classes:

  paginate @users, theme: 'bootstrap-5',
                   pagination_class: "pagination-sm flex-wrap justify-content-center",
                   nav_class: "d-inline-block"

Credits

Kaminari - Pagination gem

twitter-bootstrap-kaminari-views - Original, non-gemified implementation

bootstrap-kaminari-views - Bootstrap 2.x and 3.x compatible gem

bootstrap4-kaminari-views - Bootstrap 4.0 compatible gem

About

Bootstrap 5 compatible styles for Kaminari. Tested on Bootstrap 5.0.1.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 64.5%
  • Ruby 35.5%