{"id":21977372,"url":"https://github.com/zmitry/use-clickoutside","last_synced_at":"2026-04-13T00:05:27.433Z","repository":{"id":110954127,"uuid":"156254072","full_name":"zmitry/use-clickoutside","owner":"zmitry","description":"handle outside click with react hooks","archived":false,"fork":false,"pushed_at":"2018-11-05T20:35:07.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T03:41:49.906Z","etag":null,"topics":["hooks","outsideclick","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmitry.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-05T17:12:17.000Z","updated_at":"2018-11-15T21:19:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"78ebb4d0-a9cb-4604-bdd8-8dd500a4f914","html_url":"https://github.com/zmitry/use-clickoutside","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Fuse-clickoutside","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Fuse-clickoutside/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Fuse-clickoutside/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Fuse-clickoutside/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmitry","download_url":"https://codeload.github.com/zmitry/use-clickoutside/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245039333,"owners_count":20551230,"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":["hooks","outsideclick","react","typescript"],"created_at":"2024-11-29T16:14:26.918Z","updated_at":"2026-04-13T00:05:27.346Z","avatar_url":"https://github.com/zmitry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-clickoutside\n\nReact hook for outside clicks.\n\n```jsx\nimport * as React from 'react'\nimport useOutsideClick from 'use-clickoutside'\n\nexport default function App({ close }) {\n  const ref = useOutsideClick(close)\n\n  return \u003cdiv ref={ref}\u003econtent\u003c/div\u003e\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitry%2Fuse-clickoutside","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmitry%2Fuse-clickoutside","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitry%2Fuse-clickoutside/lists"}