Reference

@reckona/mreact-virtual

12 public exports.

Function

FunctioncalculateVirtualRangefunction calculateVirtualRange(options: VirtualRangeOptions): VirtualRangeCalculates the visible and overscanned range for a fixed-size virtual list or grid. The result includes spacer sizes, visible row/index bounds, overscanned row/index bounds, and total scroll size.FunctioncreateVirtualGridfunction createVirtualGrid<TItem>(options: VirtualGridOptions<TItem>): Virtualizer<TItem>Creates a reactive virtualizer for grid layouts with optional item row and column spans.FunctioncreateVirtualListfunction createVirtualList<TItem>(options: VirtualListOptions<TItem>): Virtualizer<TItem>Creates a one-column reactive virtualizer for scrollable lists. Inputs are read through callbacks so cell-backed item, viewport, and scroll values update the computed range automatically.

Interface

InterfaceVirtualEntryinterface VirtualEntryRepresents one rendered virtual item with its index, key, row, column, and span metadata.InterfaceVirtualGridOptionsinterface VirtualGridOptionsConfigures a reactive virtual grid with optional row and column spans.InterfaceVirtualItemSpaninterface VirtualItemSpanDescribes an item span used by span-aware virtual grids.InterfaceVirtualizerinterface VirtualizerExposes reactive virtualizer outputs, measurement updates, refresh, and scroll offset helpers.InterfaceVirtualListOptionsinterface VirtualListOptionsConfigures a reactive one-column virtual list.InterfaceVirtualRangeinterface VirtualRangeDescribes visible and overscanned item bounds plus spacer sizes for a virtual range.InterfaceVirtualRangeOptionsinterface VirtualRangeOptionsConfigures fixed-size virtual range calculation for a list or grid.InterfaceVisibleRangeinterface VisibleRangeDescribes only the user-visible item and row bounds for a virtual range.

Type Alias

Type AliasVirtualKeytype VirtualKey = string | numberIdentifies a virtualized item across measurements and scroll helpers.