Free guideThe newsletter. Real UI fixes by email, and a free 35-page guide to AI design skills.
Ship Better UI

, 1 minute 39 seconds

How many states does a button need?

The rule

Design all eight states of a button before you ship: default, hover, focus, pressed, loading, success or error, selected and disabled.

Try it

Apply the fix

Prompt for your AI coding tool

Paste it into Claude Code, Cursor or any AI coding tool, then share the page you want fixed.

Review the interface I share for buttons that only have a default state. Give each one all eight states, and change nothing else.

1. Default: keep the button as it is.
2. Hover: lighten the fill by 8%.
3. Pressed: scale the button to 97% while it is pressed, so the click feels physical.
4. Focus: a focus ring 2 px thick, 2 px off the edge, for keyboard users.
5. Loading: a spinner, the same width, and a second click ignored.
6. Success or error: a tick for 2 seconds, or say what failed and offer a retry.
7. Selected: a new label and a tick, never colour alone.
8. Disabled: 50% opacity, with the reason next to it.

Keep the copy, the size and the layout. When you are done, list each button you changed and which of the eight states it was missing.

More prompts like this in the free guide 

The problem

Most mockups draw one state of a button: the default. In the video's event card, someone hovers "Reserve a seat", presses it and tabs to it, and nothing changes. They click, nothing shows it is working, so they click again. 2.6 seconds later the seat count jumps from 42 to 44: two bookings.

The fix

Same button, same copy. Give it all eight states, in three decisions.

  1. React. On hover, lighten the fill by 8%. On press, shrink it to 97%, so the click feels physical. For keyboard users, add a focus ring 2 px thick, 2 px off the edge.
  2. Report. While it works, show a spinner, hold the width and ignore the second click. Then say how it ended: the error, with a retry, or a tick for 2 seconds.
  3. Rest. Once you are in, it stays selected: a new label, "Going", and a tick, never colour alone. When it cannot be used, dim it to 50% and say why: 60 of 60 seats taken.

Why it works

Every input gets an answer. Hover and press show the button heard you, and the ring shows a keyboard user where they are. The spinner says it is working and the second click is ignored: one booking, not two. The result ends the wait either way. Selected and disabled keep telling the truth in words, not only in colour.

How to apply it

Before you ship a button, list its eight states: default, hover, focus, pressed, loading, success or error, selected and disabled. Design all of them before you ship, on the same button with the same copy.

Free guide · 35 pages

Get fixes like this by email

Join the newsletter and get the 35-page guide to AI design skills: the skills, the order to use them in, and prompts to copy.

Watch it on

More on states