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
Copy file name to clipboardexpand all lines: CHANGELOG.md
+4
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [Unreleased]
9
9
10
+
### Changed
11
+
12
+
- Added `styleOptions.stylesRoot` property which allows to specify a container node component styles will be placed into, by [@OEvgeny](https://github.com/OEvgeny) in PR [#137](https://github.com/compulim/react-scroll-to-bottom/pull/137)
|`checkInterval`|`number`| 150 | Recurring interval of stickiness check, in milliseconds (minimum is 17 ms) |
68
+
|`className`|`string`|| Set the class name for the root element |
69
+
|`debounce`|`number`|`17`| Set the debounce for tracking the `onScroll` event |
70
+
|`debug`|`bool`|`NODE_ENV === 'development'`| Show debug information in console |
71
+
|`followButtonClassName`|`string`|| Set the class name for the follow button |
72
+
|`initialScrollBehavior`|`string`|`smooth`| Set the initial scroll behavior, either `"auto"` (discrete scrolling) or `"smooth"`|
73
+
|`mode`|`string`|`"bottom"`| Set it to `"bottom"` for scroll-to-bottom, `"top"` for scroll-to-top |
74
+
|`nonce`|`string`|| Set the nonce for [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)|
75
+
|`scroller`|`function`|`() => Infinity`| A function to determine how far should scroll when scroll is needed |
76
+
|`scrollViewClassName`|`string`|| Set the class name for the container element that house all `props.children`|
77
+
|`styleOptions.stylesRoot`|`Node`|`undefined`| Set the container node for component styles to be placed into. When set to `undefined`, will use `document.head`|
0 commit comments