You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`navContainerRef`| MutableRefObject<br><HTMLDivElement \| null><br/> |`ref` to your navigation container containing items with `data-to-scrollspy-id` attributes | - | no |
90
-
|`parentScrollContainerRef`| MutableRefObject<br><HTMLDivElement \| null><br/> | If you want to spy only on a particular scrollable `container (Element)` then pass a ref of the same to this prop | - | no |
|`navContainerRef`| MutableRefObject<br><HTMLDivElement \| null><br/> |`ref` to your navigation container containing items with `data-to-scrollspy-id` attributes | - | no |
90
+
|`parentScrollContainerRef`| MutableRefObject<br><HTMLDivElement \| null><br/> | If you want to spy only on a particular scrollable `container (Element)` then pass its ref to this prop | - | no |
|`scrollThrottle`|`number`| In `milliseconds` to throttle the `onscroll` event. Lower the number, better the response, higher the performance cost |`300`| no |
|`scrollThrottle`|`number`| In `milliseconds` to throttle the `onscroll` event. Lower the number, better the response time, higher the performance cost |`300`| no |
|`onUpdateCallback`|`(id: string) => void`| Executes this function whenever you scroll to an`Element`, callback returns the `id` of that `Element` as well | - | no |
|`onUpdateCallback`|`(id: string) => void`| Executes this function whenever you scroll to a new ScrollSpy child`Element`, callback returns the `id` of that `Element` as well | - | no |
103
103
104
104
### 🔧 Offsets
105
105
@@ -110,10 +110,10 @@ import ScrollSpy from "react-ui-scrollspy";
0 commit comments