Component

Loading Button Progress

Loading buttons with progress bar indicator

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/buttons/loading-button/progress/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Buttons/loading-button/progress
registry path: Tailwind/Components/Buttons/loading-button/progress

Source

Implementation

code.html
<!-- Loading Button with Progress Bar -->
<!-- Blue Progress -->
<button class="relative w-full overflow-hidden rounded-lg bg-blue-600 px-6 py-3 text-base font-medium text-white cursor-wait" disabled>
  <span class="mr-2">Uploading...</span>
  <div class="absolute bottom-0 left-0 h-1 bg-blue-300 w-1/3 animate-pulse"></div>
</button>

<!-- Green Progress -->
<button class="relative w-full overflow-hidden rounded-lg bg-green-600 px-6 py-3 text-base font-medium text-white cursor-wait" disabled>
  <span class="mr-2">Processing...</span>
  <div class="absolute bottom-0 left-0 h-1 bg-green-300 w-2/3 animate-pulse"></div>
</button>

<!-- Purple Progress -->
<button class="relative w-full overflow-hidden rounded-lg bg-purple-600 px-6 py-3 text-base font-medium text-white cursor-wait" disabled>
  <span class="mr-2">Installing...</span>
  <div class="absolute bottom-0 left-0 h-1 bg-purple-300 w-1/2 animate-pulse"></div>
</button>
18 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/buttons/loading-button/progress

Continue browsing

View all