# 8.1 Design every state of each component

> Chapter 8, States. Section: State vocabulary and loading. Guide: https://www.designguide.dev/md/08-states.md#design-every-state-of-each-component

Default

**Rule:** Design each component in all 12 states: default, hover, focus, pressed, selected, disabled, pending, invalid, empty, loading, error, success.

**Why:** A state you do not design is a state the code invents, and users notice those bugs.  **When not:** A component that cannot reach a state, such as a static label, needs no design for it.

- Draw the states next to each other on one sheet.
- Name each state with the same word in design and in code.

| State (12 in all) | What it means | Where to see it |
| --- | --- | --- |
| Default | Ready, untouched | Every component |
| Hover, focus, pressed | A pointer, a key, or a finger is on it | Buttons, rows, fields |
| Selected | Chosen from a set | Chips, tabs, rows |
| Disabled | Not available now | Buttons, controls |
| Pending | Working, result not yet known | Buttons, rows |
| Invalid | The input is wrong | Fields |
| Empty, loading | No data yet, or data on the way | Lists, screens |
| Error, success | The action failed or worked | Screens, banners, toasts |

**Picture:** Figure: A button in 3 states and 2 fields: focus and error.
