{"id":30580527,"url":"https://github.com/react-component/portal","last_synced_at":"2025-12-24T11:18:01.877Z","repository":{"id":60196308,"uuid":"541589582","full_name":"react-component/portal","owner":"react-component","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-26T04:00:09.000Z","size":56,"stargazers_count":26,"open_issues_count":10,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-29T05:58:03.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/react-component.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-26T13:02:29.000Z","updated_at":"2025-11-26T04:00:13.000Z","dependencies_parsed_at":"2024-02-08T03:25:26.726Z","dependency_job_id":"816a4580-16b6-4a4e-873d-f3995d28180d","html_url":"https://github.com/react-component/portal","commit_stats":{"total_commits":36,"total_committers":2,"mean_commits":18.0,"dds":"0.19444444444444442","last_synced_commit":"555b158c49a649927807bd7f9b80ac80d2742bad"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/react-component/portal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fportal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fportal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fportal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fportal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react-component","download_url":"https://codeload.github.com/react-component/portal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react-component%2Fportal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28001466,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-29T05:36:37.923Z","updated_at":"2025-12-24T11:18:01.862Z","avatar_url":"https://github.com/react-component.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-portal\n\nReact 18 supported Portal Component.\n\n[![NPM version][npm-image]][npm-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![npm download][download-image]][download-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-portal.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-portal\n[github-actions-image]: https://github.com/react-component/portal/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/portal/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/portal/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/portal\n[download-image]: https://img.shields.io/npm/dm/rc-portal.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-portal\n\n## Development\n\n```bash\nnpm install\nnpm start\nopen http://localhost:8000\n```\n\n## Feature\n\n- React life cycle support portal component\n\n## Install\n\n[![rc-portal](https://nodei.co/npm/rc-portal.png)](https://npmjs.org/package/rc-portal)\n\n## Usage\n\n```js | pure\nimport Portal from '@rc-component/portal';\n\nconst Demo = () =\u003e {\n  return \u003cPortal open\u003eHello World\u003c/Portal\u003e;\n};\n\nexport default Demo;\n```\n\n## 🔥 API\n\nWe use typescript to create the Type definition. You can view directly in IDE. But you can still check the type definition [here](https://github.com/react-component/portal/blob/master/src/interface.ts).\n\n### Portal\n\n| Prop         | Description                        | Type                     | Default       |\n| ------------ | ---------------------------------- | ------------------------ | ------------- |\n| getContainer | Customize portal container element | Element \\| () =\u003e Element | document.body |\n| open         | Show the portal                    | boolean                  | false         |\n| autoLock     | Lock screen scroll when open       | boolean                  | false         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fportal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact-component%2Fportal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact-component%2Fportal/lists"}