Skip to content

Commit

Permalink
docs: update scrollToFn/Offset/Index/ options (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreykwan committed May 6, 2024
1 parent 072205b commit d192756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/virtualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ This function receives visible range indexes and should return array of indexes
```tsx
scrollToFn?: (
offset: number,
canSmooth: boolean,
options: { adjustments?: number; behavior?: 'auto' | 'smooth' },
instance: Virtualizer<TScrollElement, TItemElement>,
) => void
```
Expand Down Expand Up @@ -254,7 +254,7 @@ scrollToOffset: (
toOffset: number,
options?: {
align?: 'start' | 'center' | 'end' | 'auto',
smoothScroll?: boolean
behavior?: 'auto' | 'smooth'
}
) => void
```
Expand All @@ -268,7 +268,7 @@ scrollToIndex: (
index: number,
options?: {
align?: 'start' | 'center' | 'end' | 'auto',
smoothScroll?: boolean
behavior?: 'auto' | 'scroll'
}
) => void
```
Expand Down

0 comments on commit d192756

Please sign in to comment.