Skip to main content
ALEXY LINK

Button 05

A state-aware action button with idle, loading, and success feedback designed for accessible asynchronous workflows.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

Typography: Inter, with a system sans-serif fallback.

About Button 05

Button 05 is a button component in the Button Components collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 30, 2026.

  • button
  • cta
  • buttons
  • loading
  • async

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: role status; aria-live.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px.

React + TypeScript + Tailwind CSS

3 files: Button05.jsx, Button05.types.ts, Button05.tailwind.css

  • Configurable through 5 props: state, idleLabel, loadingLabel, successLabel, className.
  • Uses React hooks: useState.
  • ARIA in the markup: role status; aria-busy, aria-live.
  • HTML elements used: button, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm.
View all Button Components (10)