API and Development
VirtualizedList maps items through renderItem with measured heights from estimateSize. It uses @tanstack/react-virtual with overscan, optional getItemKey, imperative scrollToIndex / scrollToOffset via ref, onScrollEnd for infinite loading, emptyContent when no rows, and scrollableProps forwarded to Scrollable (loading, error, scrollbar options).
Name | Type | Default | Description |
|---|---|---|---|
|
| — | Returns the estimated height (in px) of the item at the given index. |
|
| — | The full array of data items to virtualize. |
|
| — | Render function called for each visible item. |
|
| — | Additional CSS class applied to the virtual container. |
|
| — | Content rendered when the items array is empty. |
|
| — | Returns a stable key for the item at the given index. |
|
| — | Fires when the user scrolls near the end of the list. |
|
|
| Number of items to render beyond the visible area. |
|
|
| Virtual padding after the last item, in pixels. |
|
|
| Virtual padding before the first item, in pixels. |
|
| — | Imperative handle for programmatic scroll control. |
|
| — | Props forwarded to the underlying Scrollable container. |
|
| — | Receives the scroll viewport element (or |
Interactive examples and edge cases for this component are in Storybook.