{"id":26243454,"url":"https://github.com/faustienf/use-lifo-click-outside","last_synced_at":"2025-04-23T13:43:30.054Z","repository":{"id":44154952,"uuid":"427790187","full_name":"faustienf/use-lifo-click-outside","owner":"faustienf","description":"🎯 Detect clicks outside of elements and close components in reverse order","archived":false,"fork":false,"pushed_at":"2022-07-21T18:19:59.000Z","size":2190,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T13:05:23.233Z","etag":null,"topics":["click-outside","clickoutside","react","react-click-away","react-click-outside","typescript"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/github/faustienf/use-lifo-click-outside","language":"TypeScript","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/faustienf.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}},"created_at":"2021-11-13T22:56:22.000Z","updated_at":"2023-11-21T21:36:17.000Z","dependencies_parsed_at":"2022-07-30T11:08:03.919Z","dependency_job_id":null,"html_url":"https://github.com/faustienf/use-lifo-click-outside","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fuse-lifo-click-outside","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fuse-lifo-click-outside/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fuse-lifo-click-outside/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faustienf%2Fuse-lifo-click-outside/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faustienf","download_url":"https://codeload.github.com/faustienf/use-lifo-click-outside/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250441405,"owners_count":21431168,"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":["click-outside","clickoutside","react","react-click-away","react-click-outside","typescript"],"created_at":"2025-03-13T10:20:09.079Z","updated_at":"2025-04-23T13:43:30.036Z","avatar_url":"https://github.com/faustienf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/faustienf/use-lifo-click-outside/main/assets/demo.gif\"\u003e\n\u003c/p\u003e\n\n# ⚛️ useLifoClickOutside()\n\n[![npm-version](https://img.shields.io/npm/v/use-lifo-click-outside.svg)](https://npmjs.org/package/use-lifo-click-outside)\n\n📡 Detect clicks outside of elements and close components in reverse order.\n\n## Installation\n\n```bash\nnpm i use-lifo-click-outside\n```\n\n## Usage\n\n```tsx\nimport { useLifoClickOutside } from 'use-lifo-click-outside';\n\nuseLifoClickOutside(ref, onClose);\n\n\u003cPortal\u003e\n  \u003cModal ref={ref}\u003e\n    ...\n  \u003c/Modal\u003e\n\u003c/Portal\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Fuse-lifo-click-outside","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaustienf%2Fuse-lifo-click-outside","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaustienf%2Fuse-lifo-click-outside/lists"}