No release in over a year
kaminari-tailwind is a gem that provides a Tailwind CSS pagination template for Kaminari.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Kaminari::Tailwind

kaminari-tailwind is a Ruby gem that provides a Tailwind CSS–based pagination template for Kaminari. With minimal setup, you can quickly get a responsive pagination style in your Rails applications.

Features

  • Seamless integration with Kaminari pagination
  • Pre-built pagination views styled with Tailwind CSS
  • Easy to customize—simply modify the generated partials to fit your design

ScreenShot

Installation

  1. Add the following lines to your Gemfile:
gem 'kaminari'
gem 'kaminari-tailwind'
  1. Run bundle install to install the gems:

bundle install

Getting Started

  1. Set up pagination in your controller:
def index
  @users = User.page(params[:page]).per(10)
end
  1. Add pagination links in your view:
<%= paginate @users, theme: 'tailwind' %>

Here, theme: 'tailwind' tells Kaminari to use the Tailwind-based views provided by this gem.

Customization

  • If you ran rails generate kaminari:views tailwind, you can edit the generated partials in app/views/kaminari/ to change classes, spacing, colors, etc.
  • Adjust your tailwind.config.js if you have a custom Tailwind setup or want to add utility classes.

Contributing

  1. Fork this repository and clone it to your local environment.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes, add tests, and run the test suite (if applicable).
  4. Submit a Pull Request.

We appreciate all contributions—bug reports, feature requests, and pull requests are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to add badges, screenshots, or any additional sections (e.g., FAQ, advanced usage) to make your README more comprehensive.