Scroll to index

The Virtuoso component exposes an imperative scrollToIndex method, which can be used to scroll the passed index into view.

The scrollToIndex method accepts either number or { index: number, align: 'start' | 'center' | 'end' } as an argument.