{"id":19298962,"url":"https://github.com/javierbyte/react-clickaway","last_synced_at":"2025-04-22T09:32:44.547Z","repository":{"id":65372659,"uuid":"37481237","full_name":"javierbyte/react-clickaway","owner":"javierbyte","description":"Clickaway mixin for react, based on https://github.com/callemall work","archived":false,"fork":false,"pushed_at":"2016-02-10T03:33:04.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T15:13:40.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/javierbyte.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-15T17:51:48.000Z","updated_at":"2017-05-09T14:18:56.000Z","dependencies_parsed_at":"2023-01-19T23:25:35.993Z","dependency_job_id":null,"html_url":"https://github.com/javierbyte/react-clickaway","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/javierbyte%2Freact-clickaway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-clickaway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-clickaway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javierbyte%2Freact-clickaway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javierbyte","download_url":"https://codeload.github.com/javierbyte/react-clickaway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250215353,"owners_count":21393784,"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":[],"created_at":"2024-11-09T23:09:37.808Z","updated_at":"2025-04-22T09:32:44.293Z","avatar_url":"https://github.com/javierbyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Clickaway\n\nMixin that adds a `componentClickAway` method to react components that fires the you click away from it.\n\n## Installation\n\n```\nnpm install react-clickaway --save\n```\n\nAdd it to your component\n\n```js\nmixins: [\n  require('react-clickaway')\n]\n```\n\nAnd then just add the method:\n\n```js\ncomponentClickAway: function() {\n  console.log('Someone clicked outside this component...')\n}\n```\n\n## Thanks\nThis is just a modularized version of the https://github.com/callemall work, they used this script internally on material-ui.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Freact-clickaway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavierbyte%2Freact-clickaway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavierbyte%2Freact-clickaway/lists"}