Pagination Interactive
<div class="flex justify-center my-8">
<div class="flex rounded-md overflow-hidden">
<!-- Disabled previous button -->
<button class="px-3 py-2 bg-gray-100 border border-gray-200 text-gray-400 cursor-not-allowed">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
</svg>
</button>
<!-- Active state -->
<button class="px-4 py-2 bg-blue-600 border border-blue-600 text-white">1</button>
<!-- Hover state -->
<button class="px-4 py-2 bg-white border border-gray-300 text-gray-700 hover:bg-gray-100 hover:border-gray-400 transition-colors duration-200">2</button>
<!-- Focus state -->
<button class="px-4 py-2 bg-white border border-gray-300 text-gray-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 focus:z-10">3</button>
<!-- Normal state -->
<button class="px-4 py-2 bg-white border border-gray-300 text-gray-700 hover:bg-gray-100">4</button>
<!-- Normal next button -->
<button class="px-3 py-2 bg-white border border-gray-300 text-gray-700 hover:bg-gray-100">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</button>
</div>
</div>
<div class="flex justify-center mt-12 mb-8">
<div class="flex space-x-2">
<!-- Loading state button -->
<button class="w-10 h-10 rounded-full flex items-center justify-center bg-gray-200 border border-gray-300 text-gray-400">
<svg class="animate-spin h-5 w-5" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
</button>
<button class="w-10 h-10 rounded-full flex items-center justify-center bg-white border border-gray-300 text-gray-700 hover:bg-gray-100">1</button>
<button class="w-10 h-10 rounded-full flex items-center justify-center bg-blue-600 border border-blue-600 text-white">2</button>
<button class="w-10 h-10 rounded-full flex items-center justify-center bg-white border border-gray-300 text-gray-700 hover:bg-gray-100">3</button>
<button class="w-10 h-10 rounded-full flex items-center justify-center bg-white border border-gray-300 text-gray-700 hover:bg-gray-100">4</button>
</div>
</div>
Copied to clipboard