Which states should a UI component design include?
Document focus, errors, loading, empty and destructive-action states alongside the normal design.
How to approach it
Start by checking how someone can reach, use and leave the component by keyboard. Add states for missing data and action failure, including the next useful step. Include the relationship between visible error text and the input so implementation and testing can verify it.
Discuss this with DETAY TechWhat to prepare
- Show hover and focus as distinct interactions.
- Design long and localised labels using real examples.
- Define what happens while an action is pending.

