1.13.96 • Published 2 years ago
@myntra/uikit-component-virtual-grid v1.13.96
import VirtualGrid from './src/virtual-grid'
VirtualGrid
<VirtualGrid rows={100} columns={100} width={Math.min(600, window.innerWidth)} height={360}>
{({ style, rowIndex, columnIndex }) => <div style={{ ...style, width: '300px', height: '150px', display: 'flex', alignItems: 'center', justifyContent: 'center', background: `hsl(${(30 * rowIndex) % 361}, ${40 + (5 * columnIndex) % 61}%, 80%)` }}>{rowIndex}, {columnIndex}</div>}
</VirtualGrid>