Action bar contains a collection of horizontally aligned icon buttons.
On this page
On this page
Use an action bar to render multiple icon buttons in a row. Buttons can be split into groups by adding a divider. When there is not enough space, buttons that don't fit will be added to an overflow menu.
An action bar should only contain icon buttons with the
invisible variant (no border/background).
Use only invisible icon buttons in an action bar.
Don't use other variants or components in an action bar.
Dividers can be added to visually group related buttons.
Use a divider between buttons.
Don't use a divider at the beginning or end of the action bar.
When the buttons don't fit in the available space, an overflow button ("kebab" icon) is added at the end of the action bar signaling that there are more actions available. Clicking on the overflow button opens a menu with the remaining actions that didn't fit.
Buttons that don't fit are added to the top of the menu. Meaning that the last button in the action bar will also be the last button when inside the menu:
Overflow button appears when not enough space and resizing the action bar updates the overflow menu.
Buttons in action bars are solely used for triggering actions. Consider using a segmented control when a button should have a selected state.
Buttons in action bars have a hover and pressed state, and a focused state when using a keyboard to navigate.
Don't add a selected state or any other information like a notification dot or a counter.
When hovering over a button, a tooltip will appear that describes the action.
Describe what action will be taken when clicking on the button.
Don't use a tooltip in action bars to convey a current state.
Action bars can have 3 different sizes:
- Small (
- Medium (
- Large (
Action bars can be used inline next to other content or also full width taking up the entire space.
Make sure to add extra spacing around the action bar.
Extra padding of 8px is added when nesting an action bar in a box component.
Avoid having the action bar touch something else. Even though the action bar buttons have no borders in their resting state, when hovering/pressing a button it will show a background color.
An action bar has an ARIA role of
|Moves focus into and out of the action bar. Note that there should only be one tab-stop and pressing tab again should focus the next focusable element after the action bar. Also the first button is focused if the action bar is receiving focus for the first time after page load. Otherwise, the most recently focused button receives focus.
|Right arrow moves focus to the next button. If the last button has focus, focus loops back to the first button.
|Left arrow moves focus to the previous button. If the first button has focus, focus moves to the last button.
|Moves focus to the first button.
|Moves focus to the last button.
|Triggers the button action.