Component used as a template to render items in the grid. Must implement VirtualGridItem interface.
Optional
classThe className
applied to the outer container element. Use when styling the entire component.
Number of columns in the grid
Implementation of ItemOffsetMapping interface that defines size and offset to each column in the grid
Use useFixedSizeItemOffsetMapping or useVariableSizeItemOffsetMapping to create implementations for common cases.
Component height
Optional
innerThe className
applied to the inner container element. Use for special cases when styling only the inner container and items.
Optional
innerRender prop implementing VirtualInnerRender. Used to customize VirtualGrid.
Optional
itemPassed as VirtualBaseItemProps.data to each child item
Optional
itemFunction that defines the key to use for each item given row and column index and value of VirtualBaseProps.itemData.
Optional
maxMaximum size for CSS element beyond which layout breaks. You should never normally need to change this. The default value is compatible with all major browsers.
Optional
minThe minimum number of virtual pages to use when inner container would otherwise be more than VirtualBaseProps.maxCssSize big. You should never normally need to change this.
Optional
onCallback after a scroll event has been processed and state updated but before rendering
Resulting overall row offset. Can be passed to ItemOffsetMapping to determine first row.
Resulting overall column offset. Can be passed to ItemOffsetMapping to determine first column.
New ScrollState for rows that will be used for rendering.
New ScrollState for columns that will be used for rendering.
Optional
outerRender prop implementing VirtualOuterRender. Used to customize VirtualGrid.
Number of rows in the grid
Implementation of ItemOffsetMapping interface that defines size and offset to each row in the grid
Use useFixedSizeItemOffsetMapping or useVariableSizeItemOffsetMapping to create implementations for common cases.
Optional
useDetermines whether the component should track whether it's being actively scrolled and pass to child items as VirtualBaseItemProps.isScrolling.
Component width
Props accepted by VirtualGrid