{"id":15162027,"url":"https://github.com/micheld-dev/react-modal","last_synced_at":"2026-03-10T01:02:02.665Z","repository":{"id":94529495,"uuid":"603504224","full_name":"MichelD-dev/react-modal","owner":"MichelD-dev","description":"React-modal is a simplest way to create dialog on your ReactJS site.","archived":false,"fork":false,"pushed_at":"2023-03-10T12:34:03.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-21T22:17:19.112Z","etag":null,"topics":["dialog","modal","react","react-component","react-component-library","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@midly/react-modal","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MichelD-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-02-18T18:01:29.000Z","updated_at":"2023-03-09T11:07:05.000Z","dependencies_parsed_at":"2023-04-30T22:41:04.972Z","dependency_job_id":null,"html_url":"https://github.com/MichelD-dev/react-modal","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"4e52c98d7194772ba12d8acae4dd8375754233b9"},"previous_names":["micheld-dev/md-modal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MichelD-dev/react-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichelD-dev%2Freact-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichelD-dev%2Freact-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichelD-dev%2Freact-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichelD-dev%2Freact-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MichelD-dev","download_url":"https://codeload.github.com/MichelD-dev/react-modal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MichelD-dev%2Freact-modal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30320210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dialog","modal","react","react-component","react-component-library","tailwindcss","typescript"],"created_at":"2024-09-27T01:03:44.435Z","updated_at":"2026-03-10T01:02:00.378Z","avatar_url":"https://github.com/MichelD-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-modal\n[![npm package](https://img.shields.io/npm/v/@midly/react-modal)](https://www.npmjs.org/package/@midly/react-modal)\n[![npm package](https://img.shields.io/bundlephobia/min/@midly/react-modal)](https://www.npmjs.org/package/@midly/react-modal)\n[![npm package](https://img.shields.io/github/last-commit/micheld-dev/react-modal)](https://www.npmjs.org/package/@midly/react-modal)\n[![npm package](https://img.shields.io/npm/dw/@midly/react-modal)](https://www.npmjs.org/package/@midly/react-modal)\n\nReact-modal is a simplest way to create dialog on your ReactJS site.\n\n- Small (less than 45Kb)\n- Mobile friendly\n- Without dependencies\n\n## Getting Started\n\nInstall this package:\n\n```shell\nnpm i @midly/react-modal\n```\n\nImport the component (import modalRef type if TSX):\n\n```jsx \n//component.tsx\nimport {Modal} from '@midly/react-modal';\nimport {ModalRef} from '@midly/react-modal/dist/esm/Modal'\n\nconst modalRef = useRef\u003cModalRef\u003e(null)\n\n\u003cModal ref={modalRef}\u003eYour content\u003c/Modal\u003e\n```\n\nYou can then render the Modal component like any other React component in JSX/TSX.\n\n```jsx\n//component.tsx\nconst showModal = useCallback\u003cSubmitHandler\u003e(() =\u003e modalRef.current?.open(), [])\n\n\u003cbutton className=\"button\" onClick={showModal}\u003eOpen modal\u003c/button\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheld-dev%2Freact-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicheld-dev%2Freact-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheld-dev%2Freact-modal/lists"}