{"id":22820784,"url":"https://github.com/truework/mounty","last_synced_at":"2025-08-10T11:32:13.939Z","repository":{"id":39644524,"uuid":"219051648","full_name":"truework/mounty","owner":"truework","description":"A tiny React mount/unmount transition manager with a familiar API.","archived":false,"fork":false,"pushed_at":"2023-10-03T18:56:11.000Z","size":1491,"stargazers_count":12,"open_issues_count":14,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-12-08T18:56:42.909Z","etag":null,"topics":[],"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/truework.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":"2019-11-01T19:42:05.000Z","updated_at":"2023-06-01T17:52:28.000Z","dependencies_parsed_at":"2023-02-04T07:16:12.764Z","dependency_job_id":null,"html_url":"https://github.com/truework/mounty","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truework%2Fmounty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truework%2Fmounty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truework%2Fmounty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truework%2Fmounty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truework","download_url":"https://codeload.github.com/truework/mounty/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229406153,"owners_count":18068004,"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-12T15:27:11.825Z","updated_at":"2024-12-12T15:27:13.266Z","avatar_url":"https://github.com/truework.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# mounty ![npm](https://img.shields.io/npm/v/mounty) [![](https://badgen.net/bundlephobia/minzip/mounty)](https://bundlephobia.com/result?p=mounty)\n\nA tiny React transition manager with mount/unmount support and a familiar API.\n\n### Install\n\n```\nnpm i mounty --save\n```\n\n# Usage\n\nThe code below is [demoed here](https://codesandbox.io/s/mounty-demo-4zgwp).\n\n```javascript\nimport { Mounty } from \"mounty\";\n\nfunction App() {\n  const [active, setActive] = React.useState(false);\n\n  return (\n    \u003c\u003e\n      \u003cbutton onClick={() =\u003e setActive(!active)}\u003eClick to Pin\u003c/button\u003e\n\n      \u003cMounty in={active} timeout={400} shouldUnmount\u003e\n        {({ active, ready, entering, entered, exiting, exited }) =\u003e {\n          return (\n            \u003cdiv\n              style={{\n                opacity: ready ? 1 : 0,\n                transition: \"opacity 400ms\",\n              }}\n            \u003e\n              I'm automatically mounted \u0026 unmounted, and I fade in and out while\n              doing it!\n            \u003c/div\u003e\n          );\n        }}\n      \u003c/Mounty\u003e\n    \u003c/\u003e\n  );\n}\n\nrender(\u003cApp /\u003e, document.getElementById(\"root\"));\n```\n\n### License\n\nMIT License © [Truework](https://www.truework.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruework%2Fmounty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruework%2Fmounty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruework%2Fmounty/lists"}