Overview
- A button allows the user to perform a single action such as Save, Edit, Export, Delete, or Cancel.
- Some buttons trigger a popover menu to present more than 1 action.
- All buttons should have a short label that clearly indicates the action they will trigger.
Button icon placement
Icons can be placed either to the left or to the right of the button label.
Left (default)
Right
Icon-only buttons
- Only a few universally recognized icons can be used alone without impacting accessibility. For example, the Home icon or the Close icon (X) in modals.
- For all other icons, always include a clear label or accessible text to ensure usability for all users.
- See the Accessibly tab for more information on Best Practices for Icon-Only Buttons.
Button: icon-only
Action popover: icon-only
Toggle group: icon-only
Buttons with an options menu
| Component | Use when | Behavior | Best for |
|---|---|---|---|
| Action popover button | You want to offer contextual actions related to a specific item or element, without navigating away. | Clicking the button opens a small overlay (popover) with related actions positioned near the triggering element. | Providing contextual choices without disrupting the main flow or taking up layout space. |
| Multi-action button | You want to present 2–5 equally important, related actions in a compact format. | Clicking the button reveals a list of equally weighted options, there’s no default or primary action. | Scenarios where users must actively choose from a set of related actions, and space is limited. |
| Split button | One action is clearly the primary or most commonly used, but you want to give users access to secondary actions. | The left side triggers the primary action immediately; the right-side dropdown arrow reveals additional options. | Saving time by exposing a default action, while still offering alternatives. |
Menu opening direction
Action popover menu example: right and left-aligned
Edge case example: menu opens upward
Button layout
In general, buttons should be laid out from left to right (or top to bottom) in the following order:
- Lowest emphasis buttons first.
- Highest emphasis buttons last, where possible.
- For example, when a form has a 'Cancel' and a 'Save' button, 'Cancel' comes first as a low emphasis button, followed by 'Save' as a high emphasis button.
Horizontal
Vertical
Dos and don'ts
Do
Do
Do
Do
Do