VirtualGridItem: React.ComponentType<VirtualGridItemProps>

Type of item in a VirtualGrid

Must be passed as a child to VirtualGrid. Accepts props defined by VirtualGridItemProps. Component must pass VirtualBaseItemProps.style to whatever it renders.

const Cell = ({ rowIndex, columnIndex, style }: { rowIndex: number, columnIndex: number, style: React.CSSProperties }) => (
<div className="cell" style={style}>
{ `${rowIndex}:${columnIndex}` }
</div>
);