On this page

Toolbar

When to use toolbar, its parts, states, keys and accessibility.

Draft. Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.

When to use

  • Above a canvas, a diagram or an editor: undo, redo, zoom, fit to screen.
  • When there are more than about five related tools that users repeat often.

When not to use

  • For two or three actions at the end of a form. Use a button group.
  • For page navigation. Use tabs or a menu.

Anatomy

Part Notes
Container color.surface, border color.border, radius.control, padding space.050
Tools Icon buttons (Subtle), toggle buttons, menu buttons
Separator 1 px color.border between groups of tools

Keyboard

Key Does
Tab Enters the toolbar on the last-used tool; the next Tab leaves it
Left and Right arrows Move between tools
Home, End First and last tool

Accessibility

  • role="toolbar" and an aria-label, such as “Diagram tools”.
  • Only one tool is in the tab order at a time (roving tabindex).