Skip to content

Commit

Permalink
docs: clarify that atTopThreshold and atBottomThreshold accepts p…
Browse files Browse the repository at this point in the history
…ixel values (#701)
  • Loading branch information
ananyalohani committed Jul 13, 2022
1 parent 2930da2 commit 3442b0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ export interface VirtuosoProps<D, C> extends ListRootProps {
scrollerRef?: (ref: HTMLElement | Window | null) => any

/**
* *The property accepts pixel values.*
*
* By default `0`. Redefine to change how much away from the top the scroller can be before the list is not considered not at top.
*/
atTopThreshold?: number

/**
* *The property accepts pixel values.*
*
* By default `4`. Redefine to change how much away from the bottom the scroller can be before the list is not considered not at bottom.
*/
atBottomThreshold?: number
Expand Down

0 comments on commit 3442b0c

Please sign in to comment.