How to customize a Frontend pagy ? #680
-
I want to customize my Frontend pagy with this component https://preline.co/docs/pagination.html#alignment, my project is a rails 7 with tailwind css. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This will require some custom tailwind css. The tailwind styling example we have is here: https://ddnexus.github.io/pagy/docs/api/stylesheets/#pagy-tailwind-css You will need to map pagy classes with the specific tailwind styling you want. One way of doing this is via the demo app: https://ddnexus.github.io/pagy/playground/ you simply write the css you want, and the app should reload immediately - so you can instantly see the changes applied. You may have make a PR for that style if you are happy with the results. If I have not been clear or you have questions, please ask. |
Beta Was this translation helpful? Give feedback.
This will require some custom tailwind css. The tailwind styling example we have is here: https://ddnexus.github.io/pagy/docs/api/stylesheets/#pagy-tailwind-css
You will need to map pagy classes with the specific tailwind styling you want.
One way of doing this is via the demo app: https://ddnexus.github.io/pagy/playground/ you simply write the css you want, and the app should reload immediately - so you can instantly see the changes applied.
You may have make a PR for that style if you are happy with the results.
If I have not been clear or you have questions, please ask.