Skip to content

[toolbar] Toolbar element proposal #1283

@lukewarlow

Description

@lukewarlow

A toolbar is a way to group related controls together and provide users quick access to commands. There is no dedicated <toolbar> element in HTML today; developers instead rely on generic containers like <div> with ARIA roles and JS to handle navigation. This proposal introduces a native <toolbar> element to give authors a semantic, accessible way to do this.

Toolbars are a common pattern across platforms. A standard element will make them easier to implement consistently on the web, while mapping directly to existing ARIA concepts. This helps assistive technology users understand relationships between grouped controls, and navigate between them more efficiently.

Use cases:

  • The formatting toolbar in a document editor (bold, italic, underline, font family).
  • The main command toolbar in a drawing or photo editing app.
  • A simple toolbar with a search field and filter buttons in a catalogue.

Proposed design

At a high level, this proposal lets developers:

  1. Use <toolbar> to group a set of interactive controls.
  2. Expose accessible grouping and navigation consistent with ARIA toolbar behaviour.

See APG: https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions