WarUI

Named slots for custom content regions

GRID-A25-F10P1beyond-baselinePlanned

The custom element exposes named slots for the toolbar, empty state, loading overlay, error overlay and footer. Developers can project their own markup that uses theme tokens while the grid manages placement and visibility.

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

Live example

A <war-grid> element with a slotted toolbar and empty-state content, and zero rows.

Expected behavior

The grid shows the correct slotted region for each state, or its default fallback content. Slotted content inherits theme tokens.

Planned API surface

slot names: toolbar, empty, loading, error, footer-start, footer-endslotchange handlingshowOverlay() method

Acceptance criteria

  • Each named slot has default fallback content (pending)
  • Only one of empty, loading or error is visible at a time (pending)
  • Slotted content receives inherited --war-* tokens (pending)
  • Interactive content in the empty slot is reachable by keyboard (pending)
  • Changing slotted content at runtime updates the layout without a reload (pending)