# @hoooks/use-scroll

> Get current X, Y coordinates of scroll

Latest version **1.0.1** (published 2020-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hoooks/use-scroll
pnpm add @hoooks/use-scroll
yarn add @hoooks/use-scroll
bun add @hoooks/use-scroll
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-08-10 |
| First published | 2020-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | aiden jung |
| Maintainers | aidenjung |
| Keywords | hooks, react, hoooks |

## Links

- npm: https://www.npmjs.com/package/@hoooks/use-scroll
- Repository: https://github.com/YunhwanJung/hoooks
- Homepage: https://github.com/YunhwanJung/hoooks#readme
- Issues: https://github.com/YunhwanJung/hoooks/issues
- npm.io page: https://npm.io/package/@hoooks/use-scroll

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-08-10
- 1.0.0 — 2020-08-10

## README

# @hoooks/use-scroll
Get current X, Y coordinates of scroll

## Installation

#### yarn
`yarn add @hoooks/use-scroll`

#### npm
`npm i @hoooks/use-scroll`

## Usage
```js
import React from "react";
import useScroll from "@hoooks/use-scroll";

export default function App() {
  const { x, y } = useScroll();
  return (
    <div style={{ width: "300vw", height: "300vh" }}>
      <div style={{ position: "fixed" }}>
        <h1>X: {x}</h1>
        <h1>Y: {y}</h1>
      </div>
    </div>
  );
}
```

---
_Source: https://npm.io/package/@hoooks/use-scroll · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
