WarUI

Custom Toolbar Items and Responsive Overflow

GRID-A22-F12P1baselinePlanned

Developers can add custom buttons, toggles, dropdowns, or rendered components to any toolbar slot. When space runs out, lower-priority items collapse into an overflow 'More' menu, so toolbars stay usable on narrow screens and in embedded layouts.

Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A toolbar with 2 custom buttons plus the built-in items, shown inside a resizable container.

Expected behavior

As the width shrinks, items with the lowest priority move into the 'More' menu. Items marked overflow:'never' stay visible at all times.

Planned API surface

ToolbarItem{id,type,label,icon,onClick,render,priority,overflow:'auto'|'never'|'always'}toolbar.overflowLabelonToolbarItemClick

Acceptance criteria

  • Overflow is recalculated when the container resizes, using ResizeObserver. (pending)
  • Overflowed items appear as menu items with the same label, icon, and action. (pending)
  • Custom render functions receive the grid API. (pending)
  • Items marked overflow:'never' are never moved into the overflow menu. (pending)