Scroll to Index
The Virtuoso component exposes an imperative scrollToIndex method, which scrolls the item at the specified index into view.
As an optional configuration, the method accepts align: 'start' | 'center' | 'end' and behavior: 'smooth'.
caution
Using smooth scrolling over many items can kill performance and potentially clash with loading strategies.
loading...