{"id":23103592,"url":"https://github.com/pjb0811/react-motion-window","last_synced_at":"2025-10-18T10:05:10.012Z","repository":{"id":57334805,"uuid":"145969716","full_name":"pjb0811/react-motion-window","owner":"pjb0811","description":"window app using react \u0026 react-motion","archived":false,"fork":false,"pushed_at":"2018-09-13T05:17:21.000Z","size":457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T09:41:19.622Z","etag":null,"topics":["react","react-motion","window"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pjb0811.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}},"created_at":"2018-08-24T09:11:16.000Z","updated_at":"2018-09-13T05:17:22.000Z","dependencies_parsed_at":"2022-08-31T16:41:11.077Z","dependency_job_id":null,"html_url":"https://github.com/pjb0811/react-motion-window","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/pjb0811%2Freact-motion-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjb0811%2Freact-motion-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjb0811%2Freact-motion-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjb0811%2Freact-motion-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjb0811","download_url":"https://codeload.github.com/pjb0811/react-motion-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247085976,"owners_count":20881158,"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":["react","react-motion","window"],"created_at":"2024-12-17T00:21:45.932Z","updated_at":"2025-10-18T10:05:09.886Z","avatar_url":"https://github.com/pjb0811.png","language":"TypeScript","readme":"# react-motion-window\n\n\u003e window app using react \u0026amp; react-motion\n\n[![NPM](https://img.shields.io/npm/v/react-motion-window.svg)](https://www.npmjs.com/package/react-motion-window) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\nThis package is included in [react-motion-components](https://github.com/pjb0811/react-motion-components).\n\n## Install\n\n```bash\nnpm install --save react-motion-window\n```\n\n## Usage\n\n[demo](https://codesandbox.io/s/2062nnw20n)\n\n```tsx\nimport * as React from 'react';\n\nimport Window from 'react-motion-window';\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cdiv\u003e\n          \u003cbutton\n            onClick={() =\u003e {\n              this.window.addWindow();\n            }}\n          \u003e\n            add window\n          \u003c/button\u003e\n        \u003c/div\u003e\n        \u003cdiv\u003e\n          \u003cbutton\n            onClick={() =\u003e {\n              this.window.removeWindow();\n            }}\n          \u003e\n            remove window\n          \u003c/button\u003e\n        \u003c/div\u003e\n        \u003cWindow\n          ref={window =\u003e (this.window = window)}\n          width={200}\n          height={200}\n          position=\"center\"\n          direction=\"top\"\n          titlebar={{\n            use: true,\n            title: 'test'\n          }}\n        \u003e\n          test\n        \u003c/Window\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n```\n\n## License\n\nMIT © [pjb0811](https://github.com/pjb0811)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjb0811%2Freact-motion-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjb0811%2Freact-motion-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjb0811%2Freact-motion-window/lists"}