{"id":20447627,"url":"https://github.com/acrool/acrool-react-portal","last_synced_at":"2025-04-13T01:10:37.718Z","repository":{"id":248319616,"uuid":"828379668","full_name":"acrool/acrool-react-portal","owner":"acrool","description":"Throw React elements (ex: modal, dialog, toaster) to external using elements (usually used for","archived":false,"fork":false,"pushed_at":"2025-03-03T15:05:54.000Z","size":1076,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T19:03:09.073Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MDX","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/acrool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-14T00:58:21.000Z","updated_at":"2025-03-03T15:05:58.000Z","dependencies_parsed_at":"2024-09-14T19:20:06.600Z","dependency_job_id":null,"html_url":"https://github.com/acrool/acrool-react-portal","commit_stats":null,"previous_names":["acrool/acrool-react-portal"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-portal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-portal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-portal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-portal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrool","download_url":"https://codeload.github.com/acrool/acrool-react-portal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650750,"owners_count":21139681,"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-15T10:28:05.057Z","updated_at":"2025-04-13T01:10:37.699Z","avatar_url":"https://github.com/acrool.png","language":"MDX","funding_links":[],"categories":["React underlying structure"],"sub_categories":[],"readme":"# Acrool React Portal\n\n\u003cp align=\"center\"\u003e\n    Throw React elements (ex: modal, dialog, toaster) to external using elements (usually used for\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM](https://img.shields.io/npm/v/@acrool/react-portal.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-portal)\n[![npm](https://img.shields.io/bundlejs/size/@acrool/react-portal?style=for-the-badge)](https://github.com/acrool/@acrool/react-portal/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/l/@acrool/react-portal?style=for-the-badge)](https://github.com/acrool/react-portal/blob/main/LICENSE)\n\n[![npm downloads](https://img.shields.io/npm/dm/@acrool/react-portal.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-portal)\n[![npm](https://img.shields.io/npm/dt/@acrool/react-portal.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-portal)\n\n\u003c/div\u003e\n\nhttps://react.dev/reference/react-dom/createPortal\n\n\n## Features\n\n- Pass the component to the external Dom through the portal\n\n## Install\n\n```bash\nyarn add @acrool/react-portal\n```\n\n## Usage\n\nadd in your App.tsx\n\n```tsx\nimport ReactPortal from '@acrool/react-portal';\n\nconst App = () =\u003e {\n    return (\n        \u003cReactPortal\n            id=\"acrool-react-modal\"\n            className={styles.root}\n        \u003e\n            {item \u0026\u0026 renderDialog()}\n        \u003c/ReactPortal\u003e\n    );\n};\n```\n\n\nThere is also a example that you can play with it:\n\n[![Play react-editext-example](https://raw.githubusercontent.com/acrool/acrool-react-dialog/main/play-in-example-button.svg)](https://acrool-react-dialog.pages.dev)\n\n[![Play react-editext-example](https://raw.githubusercontent.com/acrool/acrool-react-dialog/main/play-in-example-button.svg)](https://acrool-react-modal.pages.dev)\n\n[![Play react-editext-example](https://raw.githubusercontent.com/acrool/acrool-react-toaster/main/play-in-example-button.svg)](https://acrool-react-toaster.pages.dev)\n\n\n## License\n\nMIT © [Acrool](https://github.com/acrool) \u0026 [Imagine](https://github.com/imagine10255)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-portal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrool%2Facrool-react-portal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-portal/lists"}