@react-hook/window-scroll
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@react-hook/window-scroll", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/window-scroll#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook", |
<hr> | ||
<div align="center"> | ||
<h1 align="center"> | ||
@react-hook/window-scroll | ||
useWindowScroll() | ||
</h1> | ||
@@ -12,2 +12,5 @@ </div> | ||
</a> | ||
<a aria-label="Types" href="https://www.npmjs.com/package/@react-hook/window-scroll"> | ||
<img alt="Types" src="https://img.shields.io/npm/types/@react-hook/window-scroll?style=for-the-badge&labelColor=24292e"> | ||
</a> | ||
<a aria-label="NPM version" href="https://www.npmjs.com/package/@react-hook/window-scroll"> | ||
@@ -41,2 +44,4 @@ <img alt="NPM Version" src="https://img.shields.io/npm/v/@react-hook/window-scroll?style=for-the-badge&labelColor=24292e"> | ||
#### Options | ||
| | Type | Default | Description | | ||
@@ -46,7 +51,7 @@ | --- | -------- | ------- | ------------------------------------------------------------------------------- | | ||
#### Returns `scrollY: integer` | ||
#### Returns `scrollY: number` | ||
| | Type | Description | | ||
| ------- | --------- | ------------------------------------------------------- | | ||
| scrollY | `integer` | The current scroll position of the window on the y-axis | | ||
| | Type | Description | | ||
| ------- | -------- | ------------------------------------------------------- | | ||
| scrollY | `number` | The current scroll position of the window on the y-axis | | ||
@@ -53,0 +58,0 @@ ## LICENSE |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7665
58