Button
A control that triggers an action.
See it on the 3D treeGoing deeper
Buttons usually come in levels of emphasis, such as primary, secondary and text, and need default, hover, focus, pressed, disabled and sometimes loading states. A button performs an action; a link takes you somewhere. Native button elements also provide keyboard and screen reader behaviour.
Why it matters
Getting hierarchy, labels and states right makes actions obvious and prevents costly misclicks.
In practice
In a delete dialog, the buttons read Delete project and Cancel rather than Yes and No.
Common mistake
Building a clickable div that looks like a button but cannot be reached or activated with a keyboard.
Connected terms
- Call to ActionThe primary call to action is usually presented as a button.
- Floating Action ButtonIt is a specialised button that floats above the content.
- Hover StateA hover change confirms that a pointer is over something clickable.
- Fitts's LawLarger, closer buttons are quicker to hit.
- MicrocopyA short, specific label tells people what pressing it will do.
- SignifierIts styling signals that it can be pressed.
- Touch TargetThe tappable area should be big enough even if the visible button is small.