🖼️Component State
Also known as Hover State, Pressed State, Disabled State, Focus State
How a part looks right now: resting, hover, pressed, focused or off.
Think of it like
It is like a light switch. It looks different when it is on, off or broken.
Example
A Save button shows no change when pressed. People tap it three times, so the team adds a pressed look.
Why it matters
Definition
Try it
Resting. Nothing is happening yet.
The app decides
Point at the button, press it, or reach it with Tab. The name underneath follows.
Common mistake
Key takeaways
- 1The app picks it. Based on what is happening.
- 2Design every one. Rest, hover, press, focus, off.
- 3Never skip focus. Keyboard users need it.