Back to buttons

Gradient Loading Button

A customizable gradient loading button component built with Tailwind CSS.

TailWrap.dev/preview

Usage

To use this component in your project, copy the code and paste it into your HTML file. You can customize the component by modifying the Tailwind CSS classes.

1
Copy the code
2
Paste into your project
3
Customize as needed
HTML
<button disabled="" class="bg-gradient-to-r from-blue-600 to-purple-600 text-white font-bold py-3 px-6 rounded-full shadow-lg flex items-center transition duration-300 transform hover:scale-105 active:scale-95" > <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="animate-spin h-5 w-5 mr-3 text-white" > <circle stroke-width="4" stroke="currentColor" r="10" cy="12" cx="12" class="opacity-25" ></circle> <path d="M4 12a8 8 0 018-8v8H4z" fill="currentColor" class="opacity-75" ></path> </svg> Loading... </button>
Tailwind CSS v3.3

Responsive Behavior

This component is fully responsive and adapts to different screen sizes. Use the viewport controls above to preview how it looks on different devices.

Mobile

Optimized for screens smaller than 640px

Tablet

Optimized for screens between 640px and 1024px

Desktop

Optimized for screens larger than 1024px