Editor Toolbar

A formatting toolbar for the review/document editor. It is presentational: it emits intents via onCommand(name) and reflects pressed state from the active set you pass in. It never touches an editor engine — the consuming app wires commands to document mutations. Implements the WAI-ARIA toolbar pattern: a single tab stop, with arrow keys (and Home/End) roving focus across all enabled buttons.

Fixed bar — controlled active state

active = ["bold"]

Bubble variant — floating selection menu

With a disabled command + trailing slot

Keyboard: Tab moves into the bar (lands on the first enabled button), then ArrowLeft/ArrowRight (or Up/Down) move focus, wrapping at the ends; Home/End jump to the first/last button. Space/Enter activate. Toggle buttons expose aria-pressed; action buttons omit it.