react-easy-infinite-scroll-hook
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "react-easy-infinite-scroll-hook", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "This hook allows you to create simple, lightweight components with infinite scrolling in all directions, supporting both windowed and scrollable elements.", |
@@ -115,4 +115,4 @@ # react-easy-infinite-scroll-hook | ||
| rowLength | Condition | Number of items in a `vertical` list (scroll axis `Y`). Required if you are using `vertical` scroll. | number | | | ||
| columnLength | Condition | Number of items in a `horizontal` list (scroll axis `X`). Required if you are using `horizontal`. scroll | number | | | ||
| onScroll | | The callback is called when the container is scrolled: `({ clientHeight: number, scrollHeight: number, scrollTop: number }): void` | Function | | | ||
| columnLength | Condition | Number of items in a `horizontal` list (scroll axis `X`). Required if you are using `horizontal` scroll. | number | | | ||
| onScroll | | The callback is called when the container is scrolled: `({ clientHeight: number, scrollHeight: number, scrollTop: number, clientWidth: number, scrollWidth: number, scrollLeft: number }): void` | Function | | | ||
| initialScroll | | The initial scroll position of the element, which is applied after the ref has been initialized | object | | | ||
@@ -119,0 +119,0 @@ | reverse | | The direction of the scroll axis is used to create scrolling in the opposite direction, for example when using the CSS style `flex-direction: 'row-reverse'` | object | | |
71643