Cell focus
InitialStateinterface
Initial Grid values. activeId defaults to null.
Stateinterface
The cell ID exposed by the root through
aria-activedescendant. Native focus stays on the root; selected cells and editing state are not stored here.StateSchemavariable
Effect Schema used by makeState to encode, decode, and hydrate Grid state.
activatefunction
Sets activeId, including null to clear virtual focus.
makeStatefunction
Creates hydrated Grid state. activeId defaults to null.
Cell registration
CellPositioninterface
Logical coordinates stored with each registered Grid cell.
makeCollectionvariable
Creates a scoped Collection for Grid items.
Cells and headers
Cellfunction
Renders and optionally registers a gridcell with row and column coordinates.
CellOptionsinterface
Inputs accepted by Grid.Cell in addition to the shared DOM host options.
ColumnHeaderfunction
Renders the Cell contract with the columnheader role.
RowHeaderfunction
Renders the Cell contract with the rowheader role.
Grid surface
Rootfunction
Renders the focus-owning grid root and initializes the active cell from DOM order on first focus.
RootOptionsinterface
Inputs accepted by Grid.Root in addition to the shared DOM host options.
Rows
Rowfunction
Renders an ARIA row and forwards an optional one-based aria-rowindex.
RowOptionsinterface
Inputs accepted by Grid.Row in addition to the shared DOM host options.