Optional
alignAlignment of the item. Can be:
start
: Align the item to the start of the list.center
: Align the item to the center of the list.end
: Align the item to the end of the list.nearest
: If the item is already completely visible, don't scroll. Otherwise scroll until it becomes visible.
Default: "start"
.Optional
offsetAdditional offset from the scrolled position. Default: 0
.
Optional
smoothIf true, scrolling animates smoothly. Use with caution for performance. Default: false
.
Options for scrolling to a specific index or message in the chat viewer.
See
https://github.com/inokawa/virtua#scrolltoindex