Skip to main content

Anatomy

The Toolbar consists of four primary elements that work together to group a set of controls.
Image of the anatomy of the toolbar, split into five subsections details
below
  1. Individual tools
  2. Button
  3. Select
  4. Additional tools overflow menu

Options

The Toolbar supports the following configurations to accommodate various control grouping scenarios.

Direction

Horizontal Toolbar

Vertical Toolbar

DirectionDescription
HorizontalThe default behavior, which lays out tools horizontally.
VerticalLays out tools vertically.

Behavior

The Toolbar responds to space constraints with wrapping and collapse behaviors while maintaining consistent control grouping.

Wrapping

Toolbar with Wrapping Behavior

Toolbar with Collapse Behavior

Overflow HandlingDescription
WrapThe default behavior, which wraps filters on resize.
CollapseCollapses filters on resize behind an overflow menu.

Collapse Overflow

Overflow collapses in the same order as the DOM. The topmost item in the overflow menu is the first to reappear in the DOM when resizing to a wider width.

Usage Guidelines

Use the Toolbar when providing contextual actions to a user on the items below it.

When to Use

Use Toolbar in multiple places such as WYSIWYGs, table quick actions, page header actions, or the Toolbelt experience. Use Toolbar to provide contextual actions to users on the items below it, such as an emoji reaction to a comment or a font-styling option in a rich text editor.

When Not to Use

Avoid using Toolbar when there are many actions users can take on the items below. Use Toolbar to provide quick, contextual, and relevant actions. Avoid using Toolbar when you need to batch filter API calls based on user actions. Avoid using Toolbar for complex filters.

Content

Content within the Toolbar should provide clear, contextual actions through grouped controls.

Keyboard Interaction

Users can navigate the Toolbar using standard keyboard controls.
KeyInteraction
Tab and Shift + TabMove focus into and out of the toolbar
Left Arrow / Up ArrowMoves focus to the previous control. This wraps to last control if current control is the first. Note that this is on DOM level so direction doesn’t matter.
Right Arrow/ Down ArrowMoves focus to the next control. This wraps to first control if current control is the last. Note that this is on DOM level so direction doesn’t matter.
HomeMoves focus to the first control
EndMoves focus to the last control

Accessibility

Accessibility

Keyboard interaction and aria guideline to follow WCAG Toolbar pattern. Since some ScreenReaders do not read disabled elements properly, we will enable focus for disabled controls using disabled as prop but internal assigning that to aria-disabled with style and function to block user interaction. For more guidance on form field labels and context, see input field context association best practices.
Last modified on January 23, 2026