React hook to calculate the size of browser scrollbars.
MIT License
act
by @kgregory in https://github.com/shawnmcknight/react-scrollbar-size/pull/598
Full Changelog: https://github.com/shawnmcknight/react-scrollbar-size/compare/4.0.0...5.0.0
Published by shawnmcknight over 3 years ago
BREAKING CHANGE
Deprecated the legacy component syntax in favor of the custom hook syntax introduced in #263. The custom hook is now the default export from the library. See the README for information on how to use the custom hook syntax.
Published by shawnmcknight over 3 years ago
BREAKING CHANGE
Deprecated the legacy component syntax in favor of the custom hook syntax introduced in #263. The custom hook is now the default export from the library. See the README for information on how to use the custom hook syntax.
Published by shawnmcknight over 3 years ago
This release introduces the useScrollbarSize
custom hook to provide the same functionality to detect scrollbar size changes as the existing component based syntax. This syntax is significantly easier to utilize as a consumer and should be considered the default way to utilize this library. All documentation has been updated to reference this approach and the component syntax should be considered legacy at this point.
The component syntax will be deprecated in a future major release.
Published by shawnmcknight over 3 years ago
Published by shawnmcknight almost 4 years ago
^17.0.1
(#140 by @shawnmcknight)Published by shawnmcknight over 4 years ago
debounce
function (#30 by @shawnmcknight)
Published by shawnmcknight over 4 years ago
BREAKING CHANGE
onLoad
and onChange
props in favor of a single onChange
prop. The callback for onChange
returns height
and width
instead of scrollbarHeight
and scrollbarWidth
.Published by shawnmcknight over 4 years ago
BREAKING CHANGE
onLoad
and onChange
props in favor of a single onChange
prop. The callback for onChange
returns height
and width
instead of scrollbarHeight
and scrollbarWidth
.Published by shawnmcknight over 6 years ago
Published by shawnmcknight over 7 years ago
Major version bump to facilitate new dependency requirements:
Published by shawnmcknight over 7 years ago
Published by shawnmcknight over 7 years ago
Published by shawnmcknight over 7 years ago