Skip to content

Button with loading state

A button that announces the pending request then success, without changing width.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

While sending, the label gives way to a spinner and the button switches to aria-busy; its width is kept so nothing shifts. The "Sent" feedback is announced to screen readers. Ideal for contact and booking forms.

Code

Loading the code…

The code of this component in

Archive contents

bouton-chargement-html-tailwind.zip3 files · 3 Ko

  • index.html3 Ko
  • README.md2 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A row of buttons to share the page on Facebook, LinkedIn, WhatsApp or by email, with a copy-link button and no third-party script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Toggle heart buttons that count favourites, remember them between visits and announce them to screen readers.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A button that adds an event to Google Calendar, Outlook or any calendar through an .ics file, with no third-party service.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A button that copies an IBAN, a reference, an address or a promo code and confirms "Copied", on screen and to screen readers.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component