{"id":18386454,"url":"https://github.com/stemmlerjs/react-exit-modal","last_synced_at":"2025-10-27T18:14:18.596Z","repository":{"id":107362593,"uuid":"185915148","full_name":"stemmlerjs/react-exit-modal","owner":"stemmlerjs","description":"A modal that triggers upon exit","archived":false,"fork":false,"pushed_at":"2019-05-10T15:28:46.000Z","size":511,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:49:33.367Z","etag":null,"topics":["cta","marketing-automation","modal","popup"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/stemmlerjs.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":"2019-05-10T03:51:12.000Z","updated_at":"2022-09-20T12:50:51.000Z","dependencies_parsed_at":"2023-04-04T02:32:43.790Z","dependency_job_id":null,"html_url":"https://github.com/stemmlerjs/react-exit-modal","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"8e7c30527c1609640336db8df5420472cce63709"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-exit-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-exit-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-exit-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-exit-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stemmlerjs","download_url":"https://codeload.github.com/stemmlerjs/react-exit-modal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247657275,"owners_count":20974344,"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":["cta","marketing-automation","modal","popup"],"created_at":"2024-11-06T01:22:06.258Z","updated_at":"2025-10-27T18:14:13.547Z","avatar_url":"https://github.com/stemmlerjs.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-exit-modal\n\n\u003e A modal that triggers when you exit the window.\n\n[![NPM](https://img.shields.io/npm/v/react-exit-modal.svg)](https://www.npmjs.com/package/react-exit-modal) [![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 react-exit-modal\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from 'react'\n\nimport { ExitModal, ExitModalAnimations } from 'react-exit-modal'\nimport 'rodal/lib/rodal.css';\n\nclass Example extends Component {\n  render () {\n    return (\n      \u003cExitModal\n        minimumSecondsOnPage={3},\n        animation={ExitModalAnimations.ZOOM}\n        showMask={true}\n\n        // unique name to describe the modal\n        modalName={'landing-page-signup-modal'} \n        modalExpiryHours={12} // \n      \u003e\n        \u003cdiv\u003eYour content\u003c/div\u003e\n      \u003c/ExitModal\u003e\n    )\n  }\n}\n```\n\n## License\n\nMIT © [stemmlerjs](https://github.com/stemmlerjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Freact-exit-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstemmlerjs%2Freact-exit-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Freact-exit-modal/lists"}