Keyboard Navigation

The Virtuoso component exposes an imperative scrollIntoView method, which makes it easy to implement keyboard navigation. As an optional configuration, the method accepts behavior: 'smooth' | 'auto', and a done callback which gets called after the scrolling is done. See the example below for its usage.

To test the example below, click anywhere in the list and press up / down arrows.