Skip to content

Scroll Location

RowLocation = number | RowLocationWithAlign

A location in the list to scroll to. Passing a number scrolls instantly to the row at the specified index aligned to the top. See RowLocationWithAlign for more advanced options.


Specifies a location in the list to scroll to.

align?: "start" | "center" | "end" | "start-no-overflow"

Section titled “align?: "start" | "center" | "end" | "start-no-overflow"”

How to align the item in the viewport.


Set 'smooth' to have an animated transition to the specified location.


optional done: () => void

A callback that’s invoked when the scroll is complete.

void


number | "LAST"

The index of the item to scroll to. Use 'LAST' to scroll to the last item.


Use the offset for additional adjustment of the position - can be a positive or negative number.