Top Three Tailwind CSS Pagination Components
best Tailwind CSS pagination components to enhance navigation across multiple pages. Discover responsive, customizable, and easy-to-implement pagination designs for any project.
Last 1 week agoPreview
Code
HTML
React
<!-- three Types of Pagination -->
<section class="h-dvh w-full flex flex-col items-center justify-center bg-gray-900">
<div class="inline-block space-y-8">
<!-- First Simple Pagination -->
<div class="flex gap-1">
<a href="#" class="flex items-center px-4 py-2 text-gray-500 rounded cursor-not-allowed bg-gray-800">
previous
</a>
<a href="#"
class="items-center hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:flex bg-gray-800 text-gray-200 hover:bg-blue-600 hover:bg-blue-500 hover:text-white">
1
</a>
<a href="#"
class="items-center hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:flex bg-gray-800 text-gray-200 hover:bg-blue-600 hover:bg-blue-500 hover:text-white">
2
</a>
<a href="#"
class="items-center hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:flex bg-gray-800 text-gray-200 hover:bg-blue-600 hover:bg-blue-500 hover:text-white">
3
</a>
<a href="#"
class="flex items-center px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded bg-gray-800 text-gray-200 hover:bg-blue-600 hover:bg-blue-500 hover:text-white">
Next
</a>
</div>
<!-- Second Pagination -->
<div class="flex gap-1">
<a href="#" class="px-4 py-2 text-gray-500 capitalize rounded cursor-not-allowed bg-gray-800">
<div class="flex items-center -mx-1">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 rtl:-scale-x-100" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l-4-4m0 0l4-4m-4 4h18" />
</svg>
<span class="mx-1">
previous
</span>
</div>
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
1
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
2
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
3
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
4
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
5
</a>
<a href="#"
class="px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
<div class="flex items-center -mx-1">
<span class="mx-1">
Next
</span>
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6 rtl:-scale-x-100" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8l4 4m0 0l-4 4m4-4H3" />
</svg>
</div>
</a>
</div>
<!-- third Pagination -->
<div class="flex gap-1">
<a href="#" class="flex items-center justify-center px-4 py-2 text-gray-500 capitalize rounded cursor-not-allowed rtl:-scale-x-100 bg-gray-800">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
clip-rule="evenodd" />
</svg>
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
1
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
2
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
...
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
9
</a>
<a href="#"
class="hidden px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded sm:inline bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
10
</a>
<a href="#"
class="flex items-center justify-center px-4 py-2 text-gray-700 transition-colors duration-300 transform text-gray-100 rounded rtl:-scale-x-100 bg-gray-800 text-gray-200 hover:bg-blue-500 hover:text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd"
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
clip-rule="evenodd" />
</svg>
</a>
</div>
</div>
</section>
Muhammad Imran
26 components