{"id":23366732,"url":"https://github.com/d8corp/watch-state-react-router-modal","last_synced_at":"2025-04-07T23:15:46.460Z","repository":{"id":90515647,"uuid":"315027950","full_name":"d8corp/watch-state-react-router-modal","owner":"d8corp","description":"Cool pop-ups related to URL","archived":false,"fork":false,"pushed_at":"2022-01-03T10:49:03.000Z","size":159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:03:58.060Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d8corp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-22T12:05:54.000Z","updated_at":"2022-01-03T10:48:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"5759fed0-f2d3-4211-8e64-11d9f6f970ce","html_url":"https://github.com/d8corp/watch-state-react-router-modal","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-react-router-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-react-router-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-react-router-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d8corp%2Fwatch-state-react-router-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d8corp","download_url":"https://codeload.github.com/d8corp/watch-state-react-router-modal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744328,"owners_count":20988783,"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-12-21T14:17:28.803Z","updated_at":"2025-04-07T23:15:46.429Z","avatar_url":"https://github.com/d8corp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://www.npmjs.com/package/watch-state\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/d8corp/watch-state/v3.3.3/img/logo.svg\" align=\"left\" width=\"90\" height=\"90\" alt=\"Watch-State logo by Mikhail Lysikov\"\u003e\n\u003c/a\u003e\n\n# \u0026nbsp; @watch-state/react-router-modal\n\n\u0026nbsp;\n\n[![NPM](https://img.shields.io/npm/v/@watch-state/react-router-modal.svg)](https://www.npmjs.com/package/@watch-state/react-router-modal)\n[![minzipped size](https://img.shields.io/bundlephobia/minzip/@watch-state/react-router-modal)](https://bundlephobia.com/result?p=@watch-state/react-router-modal)\n[![downloads](https://img.shields.io/npm/dm/@watch-state/react-router-modal.svg)](https://www.npmtrends.com/@watch-state/react-router-modal)\n[![changelog](https://img.shields.io/badge/Changelog-⋮-brightgreen)](https://changelogs.xyz/@watch-state/react-router-modal)\n[![license](https://img.shields.io/npm/l/@watch-state/react-router-modal)](https://github.com/d8corp/watch-state-react-router-modal/blob/main/LICENSE)  \n\nPop-ups related to URL with [React 16.8+](https://reactjs.org) and [watch-state](https://www.npmjs.com/package/watch-state).\n\n[![stars](https://img.shields.io/github/stars/d8corp/watch-state-react-router-modal?style=social)](https://github.com/d8corp/watch-state-react-router-modal/stargazers)\n[![watchers](https://img.shields.io/github/watchers/d8corp/watch-state-react-router-modal?style=social)](https://github.com/d8corp/watch-state-react-router-modal/watchers)\n\n### Install\nnpm\n```bash\nnpm i @watch-state/react-router-modal\n```\nyarn\n```bash\nyarn add @watch-state/react-router-modal\n```\n\n### Usage\nAll modals should be placed into `Modals`.\n```typescript jsx\nimport RouterModal, {Modals, OpenModal} from '@watch-state/react-router-modal'\nimport theme from '@watch-state/react-router-modal/theme/default.module.scss'\n\nexport default () =\u003e (\n  \u003c\u003e\n    \u003cOpenModal id='test'\u003eOpen\u003c/OpenModal\u003e\n    \u003cModals className={theme.modals}\u003e\n      \u003cRouterModal id='test' delay={300} classNames={theme}\u003e\n        Test modal\n      \u003c/RouterModal\u003e\n    \u003c/Modals\u003e\n  \u003c/\u003e\n)\n```\n\n## Issues\nIf you find a bug, please file an issue on [GitHub](https://github.com/d8corp/watch-state-react-router-modal/issues)\n\n[![issues](https://img.shields.io/github/issues-raw/d8corp/watch-state-react-router-modal)](https://github.com/d8corp/watch-state-react-router-modal/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fwatch-state-react-router-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd8corp%2Fwatch-state-react-router-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd8corp%2Fwatch-state-react-router-modal/lists"}