Pagination components made with TailwindCSS.
<div class="mx-auto container">
<!-- for first page -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<div class="mr-4">
<span class="cursor-not-allowed text-gray-400">← Previous</span>
</div>
<div>
<a class="text-gray-600 hover:underline" href="#" rel="next">Next →</a>
</div>
</div>
<!-- middle pages -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<div class="mr-4">
<a class="text-gray-600 hover:underline" href="#" rel="prev">← Previous</a>
</div>
<div>
<a class="text-gray-600 hover:underline" href="#" rel="next">Next →</a>
</div>
</div>
<!-- for last page -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<div class="mr-4">
<a class="text-gray-600 hover:underline" href="#" rel="prev">← Previous</a>
</div>
<div>
<span class="cursor-not-allowed text-gray-400" rel="next">Next →</span>
</div>
</div>
</div>
<div class="mx-auto container">
<!-- for first page -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<div class="border px-4 py-2 rounded-l cursor-not-allowed text-gray-400">
← Previous
</div>
<a class="block border px-4 py-2 rounded-r hover:bg-gray-200 text-gray-600" href="#" rel="next">
Next →
</a>
</div>
<!-- middle pages -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<a class="block border px-4 py-2 rounded-l hover:bg-gray-200 text-gray-600" rel="prev" href="#">
← Previous
</a>
<a class="block border px-4 py-2 rounded-r hover:bg-gray-200 text-gray-600" href="#" rel="next">
Next →
</a>
</div>
<!-- for last page -->
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<a class="block border px-4 py-2 rounded-l hover:bg-gray-200 text-gray-600" rel="prev" href="#">
← Previous
</a>
<div class="border px-4 py-2 rounded-r cursor-not-allowed text-gray-400">
Next →
</div>
</div>
</div>
<div class="container md:mb-8 pt-8 px-4 mx-auto flex justify-center select-none">
<a class="block border px-4 py-2 rounded-l hover:bg-gray-200 text-gray-600" rel="prev" href="#">←</a>
<a class="block border px-4 py-2 hover:bg-gray-200 text-gray-600" href="#">1</a>
<a class="block border px-4 py-2 bg-indigo-500 text-white" href="#">2</a>
<a class="block border px-4 py-2 hover:bg-gray-200 text-gray-600" href="#">3</a>
<span class="border px-4 py-2 cursor-not-allowed text-gray-400">…</span>
<a class="block border px-4 py-2 hover:bg-gray-200 text-gray-600" href="#">10</a>
<a class="block border px-4 py-2 rounded-r hover:bg-gray-200 text-gray-600" href="#" rel="next">→</a>
</div>