Button Loading
<!-- Loading Button with Spinner -->
<button class="inline-flex items-center justify-center px-4 py-2 font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition-colors">
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white" 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>
Loading...
</button>
<!-- Loading Button with Dots -->
<button class="inline-flex items-center justify-center px-4 py-2 font-medium text-white bg-green-600 rounded-lg hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-opacity-50 transition-colors">
<span class="flex items-center">
<span>Processing</span>
<span class="flex ml-2">
<span class="animate-bounce h-1.5 w-1.5 bg-white rounded-full mx-0.5"></span>
<span class="animate-bounce h-1.5 w-1.5 bg-white rounded-full mx-0.5" style="animation-delay: 0.2s"></span>
<span class="animate-bounce h-1.5 w-1.5 bg-white rounded-full mx-0.5" style="animation-delay: 0.4s"></span>
</span>
</span>
</button>
<!-- Loading Button with Disabled State -->
<button disabled class="inline-flex items-center justify-center px-4 py-2 font-medium text-white bg-blue-400 rounded-lg cursor-not-allowed">
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white" 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>
Submitting...
</button>
Copied to clipboard