{"id":13450824,"url":"https://github.com/amorriscode/use-overflow","last_synced_at":"2025-03-17T09:30:35.917Z","repository":{"id":39124428,"uuid":"264484089","full_name":"amorriscode/use-overflow","owner":"amorriscode","description":"A React Hook that allows you to detect X and Y overflow","archived":false,"fork":false,"pushed_at":"2023-04-08T00:48:58.000Z","size":2910,"stargazers_count":30,"open_issues_count":11,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T21:50:22.120Z","etag":null,"topics":["css","overflow","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://amorriscode.github.io/use-overflow/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amorriscode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-05-16T16:57:46.000Z","updated_at":"2025-02-12T07:41:00.000Z","dependencies_parsed_at":"2024-01-07T18:23:47.962Z","dependency_job_id":null,"html_url":"https://github.com/amorriscode/use-overflow","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":"0.16666666666666663","last_synced_commit":"563535794dcedb1e76febb4d1a505b9ae203e950"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorriscode%2Fuse-overflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorriscode%2Fuse-overflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorriscode%2Fuse-overflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amorriscode%2Fuse-overflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amorriscode","download_url":"https://codeload.github.com/amorriscode/use-overflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858794,"owners_count":20359257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","overflow","react","react-hooks"],"created_at":"2024-07-31T07:00:38.946Z","updated_at":"2025-03-17T09:30:35.365Z","avatar_url":"https://github.com/amorriscode.png","language":"JavaScript","readme":"# use-overflow\n\n\u003e A React Hook that allows you to detect X and Y overflow.\n\n[![NPM](https://img.shields.io/npm/v/use-overflow.svg)](https://www.npmjs.com/package/use-overflow) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save use-overflow\nOR\nyarn add use-overflow\n```\n\n## Usage\n\n[Check out the live example](https://amorriscode.github.io/use-overflow/).\n\n```tsx\nimport * as React from 'react'\n\nimport { useOverflow } from 'use-overflow'\n\nconst Example = () =\u003e {\n  const horizontalRef = React.useRef(null);\n  const { refXOverflowing, refXScrollBegin, refXScrollEnd } = useOverflow(horizontalRef);\n\n  const verticalRef = React.useRef(null);\n  const { refYOverflowing, refYScrollBegin, refYScrollEnd } = useOverflow(verticalRef);\n\n  return (\n    \u003cdiv\u003e\n      {/* Conditional do stuff based on overflow! */}\n    \u003c/div\u003e\n  )\n}\n```\n\n## License\n\nMIT © [amorriscode](https://github.com/amorriscode)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","funding_links":[],"categories":["Packages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famorriscode%2Fuse-overflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famorriscode%2Fuse-overflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famorriscode%2Fuse-overflow/lists"}