Skip to content
← The index

State buttons

A customizable button for loading, thinking, pending, success and error states.

Copy for agent
Orbit
Wave
Scan

The idea

The dot matrix keeps its shape while its light pattern changes. Loading, thinking, pending, success and error share one button.

Interaction

Change state, animation, size, speed, glow or accent. Press the large button to run the short simulated operation. Press again or use Escape to cancel it.

Success draws a check through the cells, while error draws a cross. Reduced motion holds a still frame, and hidden or offscreen previews pause the canvas.

Adapted from uixamjad's button animation. The original code, font and interaction behavior were unavailable. This component uses new matrix formulas and editable text; it is not an exact reconstruction.