NEURALNG

TOOLBAR

Accessibility

A named toolbar composite with predictable tab entry and directional navigation.

Role and accessible name

The root exposes role="toolbar" and orientation. Supply a contextual ariaLabel or reference visible text with ariaLabelledby; the reference takes precedence.

Keyboard model

Tab enters one active control. Horizontal toolbars use Left and Right, vertical toolbars use Up and Down, while Home and End reach the logical edges. Projected controls retain Enter and Space activation.

Disabled controls

Native disabled and aria-disabled="true" controls are skipped. A MutationObserver resynchronizes focus when projected controls are added, removed or disabled.

Editable controls

Arrow handling is not intercepted while focus is inside an input, select, textarea or contenteditable element, preserving caret movement and native editing behavior.

RTL and lifecycle

Horizontal arrow direction mirrors computed RTL direction. On destroy, observed nodes are disconnected and every consumer-provided tabindex is restored. Browser-only work is deferred, keeping SSR and hydration safe.